Method and apparatus for timing training on LVDS interface
The method addresses LVDS interface training by using separate delay chains to adjust sampling positions, improving accuracy and reducing burrs, thus enhancing LVDS interface performance.
Patent Information
- Application Number
- JP2024035392
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-28
- Filing Date
- 2024-03-07
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-03-07
AI Technical Summary
Existing time series training methods for LVDS interfaces in FPGA fail to account for on-chip variation (OCV) differences and asymmetry between P and N data slopes, leading to burrs in the data stream and inaccurate window accuracy due to changes in delay values.
A method and apparatus that involves inputting LVDS differential data into separate delay chains, converting to parallel data, using one as reference and the other as scanning data to adjust delay sequences, and calculating differences to center the sampling position accurately, thereby reducing burr occurrence and enhancing window accuracy.
The solution effectively handles the impact of OCV differences and P/N data asymmetry, ensuring accurate data sampling and reducing burr formation, while optimizing delay chain design.
Smart Images

Figure 2024144199000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the technical field of mFPGA (Field Programmable Gate Array), and in particular to a time-series training method and apparatus for LVDS interface. [Background technology]
[0002] The LVDS (Low Voltage Differential Signaling) interface of an FPGA (Field Programmable Gate Array) usually adjusts the phase of the sampling clock or serial data by changing the number of delay chain stages to ensure that the relationship between the serial data and the sampling clock is maintained. However, switching the number of delay chain stages is likely to cause burrs in the data stream.
[0003] Chips in different regions on the same wafer may have different errors due to changes in external and production conditions, and the overall speed of transistors on chips in some regions on the same wafer may be faster or slower. At the same time, different regions on the same chip may have further differences, i.e., on-chip variation (OCV), due to the above factors.
[0004] When the LVDS interface receiver performs time series training, it usually determines the sampling position by sending a training data sequence for a certain period, and determines the center position of the data valid window by comparing the fixed training sequence multiple times. However, the existing time series training method cannot handle the adverse effect of chip OCV difference on the window accuracy. For example, if the delay value designed for the delay unit in the delay chain is 10ps, the actual delay of the same circuit and chip may be 9.5ps or 10.5ps. After the delay chain cascade, the actual delay difference will be larger, and the temperature, voltage, and process will also affect the delay value of the delay unit. The existing time series training method cannot avoid the effect of the difference in the rise and fall slope of the data on the data valid window, that is, the effect of the asymmetry of the P data and N data of the LVDS signal on the data valid window. As shown in Figure 1, it is a schematic diagram showing the effect of the rise and fall time symmetry of the OCV and the P data and N data of the LVDS signal on the data window. Summary of the Invention
[0005] Based on this, the present invention provides a time series training method and apparatus for LVDS interface, which solves the problems that burrs are introduced into the data stream due to switching of the number of delay chain stages, resulting in error codes, the need to send a training sequence for interface time series training, the adverse effect of chip OCV difference on window accuracy, and the inability to avoid the effect of asymmetry between LVDS signal P data and N data on the data valid window.
[0006] The present invention provides a time series training method for an LVDS interface, the method comprising: S1: inputting the P end of the LVDS differential data signal into a first delay chain, and converting it into a first parallel data by serial-parallel conversion; inputting the N end of the LVDS differential data signal into a second delay chain, and converting it into a second parallel data by serial-parallel conversion; S2: Sampling data using the second parallel data as reference data and the first parallel data as scanning data, collecting a relative position between the sampling position corresponding to the delay sequence and the center of the scanning data window, and when the sampling position corresponding to the delay sequence is located at the center of the scanning data window, recording the delay sequence as a first delay sequence; S3: Sampling data using the first parallel data as reference data and the second parallel data as scanning data, and using an initial delay sequence of the second parallel data as the first delay sequence, collecting a relative position between the sampling position corresponding to the delay sequence and the center of the scanning data window, and recording the first delay sequence as a second delay sequence when the sampling position corresponding to the delay sequence is located at the center of the scanning data window; S4: A step of calculating a delay sequence difference from the first delay sequence and the second delay sequence, setting a sum of the first delay sequence and half the delay sequence difference as a delay sequence of the first parallel data, and receiving the LVDS differential data using the second parallel data as scan data.
[0007] Furthermore, the S2 is S21: taking the second parallel data as reference data, setting an initial delay sequence of the first parallel data for sampling data, and collecting the relative position corresponding to the initial delay sequence, wherein the initial delay sequence is smaller than the total delay sequence of the first delay chain; S22: If the sampling position corresponding to the initial delay sequence is on the left side of the window center of the first parallel data, the initial delay sequence is decreased, and the decreased initial delay sequence is updated to the initial delay sequence, and then the relative position is collected again; if the sampling position corresponding to the initial delay sequence is on the right side of the window center of the first parallel data, increasing the initial delay sequence, updating the increased initial delay sequence to the initial delay sequence, and then collecting the relative position again; S23: The step of determining, when a sampling position corresponding to the initial delay sequence is located at the center of a window of the first parallel data, that the initial delay sequence is the first delay sequence.
[0008] Furthermore, the S3 S31: setting the first parallel data as reference data, and setting the first delay sequence as an initial delay sequence of the second parallel data, and scanning the first parallel data, and simultaneously collecting the relative position corresponding to the initial delay sequence; S32: If the sampling position corresponding to the initial delay sequence is on the left side of the window center of the second parallel data, the initial delay sequence is decreased, and the decreased initial delay sequence is updated to the initial delay sequence, and then the relative position is collected again; if the sampling position corresponding to the initial delay sequence is on the right side of the window center of the first parallel data, increasing the initial delay sequence, updating the increased initial delay sequence to the initial delay sequence, and then collecting the relative position again; S33: When a sampling position corresponding to the initial delay sequence is located at the center of a window of the second parallel data, the initial delay sequence is set as the second delay sequence.
[0009] Further, the step of acquiring the relative positions of the scan data window center and the sampling positions corresponding to the delay sequence at S2 and S3 includes: S51: selecting one set of data from the first parallel data and the second parallel data as reference data, and collecting data from the other set of data as scan data, and a delay sequence of the scan data is the delay sequence corresponding to the scan data from the first parallel data and the second parallel data; S52: decreasing the delay sequence step by step and monitoring whether the reference data and the scan data match within a specific time; S53: If there is a match and the delay sequence has not decreased to zero, repeat S52; If not, record the delay sequence as a first sub-delay sequence and proceed to S54; S54: reloading the delay sequence; S55: increasing the delay sequence step by step and monitoring whether the reference data and the scan data match within a specific time; S56: If there is a match and the delay sequence has not reached the maximum delay sequence value, repeat S55; otherwise, recording the delay sequence as a second sub-delay sequence; S57: obtaining a first sub-delay sequence difference and a second sub-delay sequence difference based on the delay sequence, the first sub-delay sequence and the second sub-delay sequence, comparing the first sub-delay sequence difference and the second sub-delay sequence difference, and obtaining a relative position between the sampling position corresponding to the delay sequence and the center of the scanning data window.
[0010] Furthermore, S57 states: S571: A step of setting a difference between the delay sequence and the first sub-delay sequence as the first sub-delay sequence difference, and setting a difference between the second sub-delay sequence and the delay sequence as the second sub-delay sequence difference; S572: if the first sub-delay sequence difference is greater than the second sub-delay sequence, the sampling position corresponding to the delay sequence is on the left side of the scanning data window center in the first parallel data and the second parallel data; When the first sub-delay sequence difference is smaller than the second sub-delay sequence, the sampling position corresponding to the delay sequence is on the right side of the center of a scanning data window in the first parallel data and the second parallel data; If the first sub-delay sequence difference is equal to the second sub-delay sequence, the sampling position corresponding to the delay sequence is at the center of a scan data window in the first parallel data and the second parallel data.
[0011] Additionally, the total delay of the first delay chain and the second delay chain is greater than a width of a serial data window.
[0012] Furthermore, before the step S1, S0: further comprising the step of scrambling the LVDS differential data, converting it into serial data by parallel-serial conversion, and inputting it into a delay chain; After S4, S6: The method further includes the step of descrambling the received LVDS differential data.
[0013] Furthermore, the initial delay sequence is one-half the total delay sequence of the first delay chain.
[0014] Furthermore, the smaller the delay sequence difference, the smaller the difference in delay sequences due to errors on the same chip and tilt asymmetry between the P end and the N end of the LVDS differential data.
[0015] The present invention further provides a time series training apparatus for an LVDS interface, said apparatus comprising: A conversion module for inputting the P end of the LVDS differential data signal into a first delay chain and converting it into a first parallel data by serial-parallel conversion, and inputting the N end of the LVDS differential data signal into a second delay chain and converting it into a second parallel data by serial-parallel conversion; a first sampling module for sampling data using the second parallel data as reference data and the first parallel data as scan data, collecting a relative position between a sampling position corresponding to a delay sequence and a center of the scan data window, and recording the delay sequence as a first delay sequence when the sampling position corresponding to the delay sequence is located at the center of the scan data window; a second sampling module for sampling data using the first parallel data as reference data and the second parallel data as scan data, and for sampling an initial delay sequence of the second parallel data as the first delay sequence, collecting a relative position between a sampling position corresponding to the delay sequence and a center of the scan data window, and recording the first delay sequence as a second delay sequence when the sampling position corresponding to the first delay sequence is located at the center of the scan data window; a data output path determination module for determining a delay sequence difference from the first delay sequence and the second delay sequence, setting a sum of the first delay sequence and half the delay sequence difference as a delay sequence of the first parallel data, and receiving the LVDS differential data as scan data of the second parallel data.
[0016] The time series training method for LVDS interface provided by the present invention inputs the P end and N end of LVDS differential data signal into a first delay chain and a second delay chain respectively, then takes the second parallel data as reference data and the first parallel data as scanning data to sample data, and when the sampling position corresponding to the delay sequence is located at the window center of the scanning data, obtains a first delay sequence, takes the first parallel data as reference data and the second parallel data as scanning data to sample data, and sets the initial delay sequence of the second parallel data as the first delay sequence, and when the sampling position corresponding to the delay sequence is located at the window center of the scanning data, obtains a second delay sequence, obtains a delay sequence difference from the first delay sequence and the second delay sequence, and finally sets the sum of the first delay sequence and half the delay sequence difference as the delay sequence of the first parallel data, and receives the LVDS differential data as the second parallel data as scanning data. It can deal with the impact of the P end and N end signal slope asymmetry of OCV and LVDS differential data on the data valid window, and at the same time, it can avoid the burr in the data stream when switching the number of delay chain stages, and reduce the design requirements of the delay chain. The time series training device for LVDS interface provided by the present invention can achieve the above effects. [Brief description of the drawings]
[0017] In order to more clearly describe the technical solutions in the embodiments of the present invention, the following briefly describes the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings described below are only some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these accompanying drawings without creative labor.
[0018] [Figure 1] 1 is a schematic diagram showing the effect of rise and fall time symmetry between P data and N data of OCV and LVDS signals on a data window. FIG. [Diagram 2] FIG. 2 is a schematic diagram of an LVDS transceiver architecture for applying a time series training method for an LVDS interface provided by an embodiment of the present invention; [Diagram 3] 1 is a schematic flow diagram of a time-series training method for an LVDS interface provided by an embodiment of the present invention; [Figure 4] FIG. 13 is a schematic diagram of a flow for obtaining a first delay sequence. [Diagram 5] FIG. 13 is a schematic diagram of a flow for obtaining a second delay sequence. [Figure 6] 13 is a schematic diagram of a process for obtaining the relative position of the scan data window center and the sampling positions corresponding to a delay sequence. [Figure 7] FIG. 13 is a schematic diagram of a flow of a time-series training method for another LVDS interface provided by an embodiment of the present invention. [Figure 8] FIG. 1 is a schematic block diagram of a time series training device for an LVDS interface provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art in the technical field of this application, and in this specification, the terms used in the specification of this application are used only for the purpose of describing specific examples and are not intended to limit this application, and the terms "including", "having" and any variations thereof in the specification and claims of this application and the above-mentioned attached drawings are intended to be non-exclusive inclusive. Terms such as "first", "second" and the like in the specification and claims of this application or the above-mentioned attached drawings are used to distinguish different objects and are not used to specify a specific order.
[0020] Reference to an "embodiment" in this specification means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The presence of this phrase in various places in this specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment that is mutually exclusive with other embodiments. Those skilled in the art will understand that the embodiments described herein may be combined with other embodiments, whether explicitly or implicitly.
[0021] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application will be described in more detail below in conjunction with the accompanying drawings and examples. It should be noted that the specific examples described herein are merely for the purpose of interpreting the present application, and are not intended to limit the present application. Based on the embodiments of the present invention, other embodiments obtained by those skilled in the art without creative labor are all included in the protection scope of the present invention.
[0022] In the following description, the terms "module", "component", "unit" and the like used to indicate elements are used only for the purpose of facilitating the description of this application, and do not have any specific meaning in themselves.
[0023] As shown in FIG2, it is a schematic diagram of an LVDS transceiver architecture applying a time series training method for LVDS interface provided by an embodiment of the present invention, including a transmitting side and a receiving side of an LVDS transceiver, the transmitting side includes a scrambling module and a parallel-to-serial conversion module, and the receiving side includes a delay chain 1, a serial-to-parallel conversion module 1, a delay chain 2, a serial-to-parallel conversion module 2, a delay stage selection module, a sampling position scanning module, a time series training control module, a data path selection module and a descrambling module. Here, the transmission path composed of the delay chain 1 and the serial-to-parallel conversion module 1 is called path 1, and the transmission path composed of the delay chain 2 and the serial-to-parallel conversion module 2 is called path 2. At the transmitting side of the LVDS transceiver, the parallel data is scrambled by the scrambling module, and then the scrambled parallel data is transferred to the parallel-to-serial conversion module by the scrambling module, and the parallel data is converted to serial data by the parallel-to-serial conversion module, and then the serial data stream is sent out at the LVDS level. The P and N terminals of the LVDS differential data signal input at the receiving side of the LVDS transceiver are input to one of paths 1 and 2, respectively, and then converted to parallel data via serial-to-parallel conversion. The parallel data of the two paths are compared to determine the sampling position.
[0024] As shown in FIG. 3, a flow diagram of a time-series training method for an LVDS interface provided by an embodiment of the present invention is applied to the receiving side of the LVDS transceiver in FIG. 2. The method includes: S1: inputting the P end of the LVDS differential data signal into a first delay chain, and converting it into a first parallel data by serial-parallel conversion; inputting the N end of the LVDS differential data signal into a second delay chain, and converting it into a second parallel data by serial-parallel conversion; S2: Sampling data using the second parallel data as reference data and the first parallel data as scanning data, collecting a relative position between the sampling position corresponding to the delay sequence and the center of the scanning data window, and when the sampling position corresponding to the delay sequence is located at the center of the scanning data window, recording the delay sequence as a first delay sequence; S3: Sampling data using the first parallel data as reference data and the second parallel data as scanning data, and using an initial delay sequence of the second parallel data as the first delay sequence, collecting a relative position between the sampling position corresponding to the delay sequence and the center of the scanning data window, and recording the first delay sequence as a second delay sequence when the sampling position corresponding to the delay sequence is located at the center of the scanning data window; S4: A step of calculating a delay sequence difference from the first delay sequence and the second delay sequence, setting a sum of the first delay sequence and half the delay sequence difference as a delay sequence of the first parallel data, and receiving the LVDS differential data using the second parallel data as scan data.
[0025] Specifically, in this embodiment, the time series training module in Fig. 2 sends a sampling signal to the sampling position scanning module, and in order to monitor the positional relationship between the scanning sampling position and the window center, the sampling position scanning module scans the positional relationship between the sampling position and the window center, and calibrates the sampling position when the data window is offset from the window center. In this embodiment, when the sampling position scanning module receives a sampling signal from the time series training module, the P end of the LVDS differential data signal is input to the delay chain 1 in Fig. 2, the data output from the delay chain 1 is input to the serial-parallel conversion module 1 to be converted into the first parallel data, and the N end of the LVDS differential data signal is input to the delay chain 2 in Fig. 2, and the data output from the delay chain 2 is input to the serial-parallel conversion module 2 to be converted into the second parallel data. Time series training is performed with the path 2 as the scanning path and the path 1 as the reference path. An initial delay sequence of delay chain 1 is set (for example, it may be set to half of the total delay sequence of delay chain 1), and the sampling position scanning module starts to collect the relative position between the sampling position corresponding to the initial delay sequence and the center of the scan data window, and if the sampling position corresponding to the initial delay sequence is at the center of the scan data window, the initial delay sequence is recorded as the first delay sequence, and if the sampling position corresponding to the initial delay sequence is not at the center of the scan data window, the delay sequence is adjusted according to the position result obtained by the sampling position scanning module and sent to the delay stage number selection module, and after the delay stage number selection module sends the adjusted delay sequence to delay chain 1, the sampling position scanning module continues scanning, and if the sampling position scanning module scans that the sampling position is at the center of the scan data window, the delay sequence is recorded as the first delay sequence. Then, time series training is performed with path 1 as the scanning path and path 2 as the reference path.The initial delay sequence of the delay chain 2 is set as the first delay sequence, and the sampling position scanning module starts to collect the relative position between the sampling position corresponding to the first delay sequence and the center of the scan data window, and if the sampling position corresponding to the first delay sequence is at the center of the scan data window, the first delay sequence is recorded as the second delay sequence, and if the sampling position corresponding to the first delay sequence is not at the center of the scan data window, the first delay sequence is adjusted according to the position result obtained by the sampling position scanning module and sent to the delay stage number selection module, and the delay stage number selection module sends the adjusted delay sequence to the delay chain 2, the sampling position scanning module, and then, if the sampling position scanning module scans that the sampling position is at the center of the scan data window, the delay sequence is recorded as the second delay sequence. Then, the delay sequence difference between the first delay sequence and the second delay sequence is obtained, and the delay sequence of the delay chain 1 is set to the sum of the first delay sequence and half of the delay sequence by the delay stage number selection module, and the path 2 is selected as the scan path and sent to the data path selection module to receive the LVDS differential data.
[0026] In some embodiments, as shown in FIG. 4, a schematic diagram of a process for obtaining a first delay sequence, wherein S2 is: S21: taking the second parallel data as reference data, setting an initial delay sequence of the first parallel data for sampling data, and collecting the relative position corresponding to the initial delay sequence, wherein the initial delay sequence is smaller than the total delay sequence of the first delay chain; S22: If the sampling position corresponding to the initial delay sequence is on the left side of the window center of the first parallel data, the initial delay sequence is decreased, and the decreased initial delay sequence is updated to the initial delay sequence, and then the relative position is collected again; if the sampling position corresponding to the initial delay sequence is on the right side of the window center of the first parallel data, increasing the initial delay sequence, updating the increased initial delay sequence to the initial delay sequence, and then collecting the relative position again; S23: The step of determining, when a sampling position corresponding to the initial delay sequence is located at the center of a window of the first parallel data, that the initial delay sequence is the first delay sequence.
[0027] Specifically, in this embodiment, the selection path 1 is a scanning path and the path 2 is a reference path, and an initial delay sequence of the delay chain 1 is set, and the initial delay sequence is smaller than an arbitrary number between the total delay sequences of the delay chain 1, and then the sampling position scanning module scans the relative position between the sampling position corresponding to the initial delay sequence and the window center of the first parallel data, and if the sampling position corresponding to the initial delay sequence is at the window center of the first parallel data, records the initial delay sequence as the first delay sequence. If the sampling position corresponding to the initial delay sequence is on the left side of the window center of the first parallel data, the time series training control module decreases the initial delay sequence, sends the decreased delay sequence to a delay stage selection module, updates the delay sequence of delay chain 1 to the decreased delay sequence, and continues to collect relative positions between the sampling positions corresponding to the delay sequence and the window center of the first parallel data from the sampling positions; if the sampling position corresponding to the delay sequence is on the right side of the window center of the first parallel data, the time series training control module increases the initial delay sequence, sends the increased delay sequence to a delay stage selection module, updates the delay sequence of delay chain 1 to the increased delay sequence, and continues to collect relative positions between the sampling positions corresponding to the delay sequence and the window center of the first parallel data from the sampling positions; if the sampling position corresponding to the adjusted delay sequence of delay chain 1 is on the window center of the first parallel data, records the delay sequence of delay chain 1 as a first delay sequence.
[0028] In some embodiments, the initial delay sequence is preferably one-half the total delay sequence of the first delay chain.
[0029] In some embodiments, as shown in FIG. 5, a schematic diagram of a process for obtaining a second delay sequence, wherein S3 includes: S31: setting the first parallel data as reference data, and setting the first delay sequence as an initial delay sequence of the second parallel data, and scanning the first parallel data, and simultaneously collecting the relative position corresponding to the initial delay sequence; S32: If the sampling position corresponding to the initial delay sequence is on the left side of the window center of the second parallel data, the initial delay sequence is decreased, and the decreased initial delay sequence is updated to the initial delay sequence, and then the relative position is collected again; if the sampling position corresponding to the initial delay sequence is on the right side of the window center of the first parallel data, increasing the initial delay sequence, updating the increased initial delay sequence to the initial delay sequence, and then collecting the relative position again; S33: When a sampling position corresponding to the initial delay sequence is located at the center of a window of the second parallel data, the initial delay sequence is set as the second delay sequence.
[0030] Specifically, in this embodiment, path 2 is selected as the scanning path and path 1 is selected as the reference path, and the initial delay sequence of delay chain 2 is set as the first delay sequence. Then, the sampling position scanning module scans the relative position between the sampling position corresponding to the initial delay sequence and the window center of the second parallel data, and if the sampling position corresponding to the first delay sequence is at the window center of the second parallel data, records the first delay sequence as the second delay sequence. If the sampling position corresponding to the first delay sequence is on the left side of the window center of the second parallel data, the time series training control module decreases the initial delay sequence, sends the decreased delay sequence to a delay stage selection module, updates the delay sequence of delay chain 2 to the decreased delay sequence, and continues to collect relative positions between the sampling positions corresponding to the delay sequence and the window center of the first parallel data from the sampling positions; if the sampling position corresponding to the first delay stage is on the right side of the window center of the second parallel data, the time series training control module increases the initial delay sequence, sends the increased delay sequence to a delay stage selection module, updates the delay sequence of delay chain 2 to the increased delay sequence, and continues to collect relative positions between the sampling positions corresponding to the delay sequence and the window center of the second parallel data from the sampling positions; if the sampling position corresponding to the adjusted delay sequence of delay chain 2 is at the window center of the second parallel data, records the delay sequence of delay chain 2 as a second delay sequence.
[0031] In some embodiments, as shown in FIG. 6, a schematic diagram of a flow for acquiring a relative position of the scan data window center and a sampling position corresponding to a delay sequence, the step of acquiring the relative position of the scan data window center and a sampling position corresponding to the delay sequence in S2 and S3 may include: S51: selecting one set of data from the first parallel data and the second parallel data as reference data, and collecting data from the other set of data as scan data, and a delay sequence of the scan data is the delay sequence corresponding to the scan data from the first parallel data and the second parallel data; S52: decreasing the delay sequence step by step and monitoring whether the reference data and the scan data match within a specific time; S53: If there is a match and the delay sequence has not decreased to zero, repeat S52; If not, record the delay sequence as a first sub-delay sequence and proceed to S54; S54: reloading the delay sequence; S55: increasing the delay sequence step by step and monitoring whether the reference data and the scan data match within a specific time; S56: If there is a match and the delay sequence has not reached the maximum delay sequence value, repeat S55; otherwise, recording the delay sequence as a second sub-delay sequence; S57: obtaining a first sub-delay sequence difference and a second sub-delay sequence difference based on the delay sequence, the first sub-delay sequence and the second sub-delay sequence, comparing the first sub-delay sequence difference and the second sub-delay sequence difference, and obtaining a relative position between the sampling position corresponding to the delay sequence and the center of the scanning data window.
[0032] Specifically, in this embodiment, when the time series training control module sends a sampling signal to the sampling position scanning module, the sampling position scanning module obtains the delay series corresponding to the scanning paths in the delay chain 1 and the delay chain 2 determined by the time series training control module, selects one set of data in the delay chain 1 or the delay chain 2 as reference data, and the remaining set is taken as scanning data, and the delay series of the selected scanning data is taken as the delay series corresponding to the scanning paths in the delay chain 1 and the delay chain 2 determined by the time series training control module. Then, the delay sequence is decreased step by step, and a determination is made as to whether the data of the reference data and the scan data match within a specific time; if so, and the delay sequence is not decreased to zero, the delay sequence is continued to be decreased; if not so, the delay sequence is recorded as a first sub-delay sequence; the delay sequence is reloaded, and the delay sequence is increased step by step, and a determination is made as to whether the data of the reference data and the scan data match within a specific time; if so, and the delay sequence has not reached a maximum value of the delay sequence, the delay sequence is continued to be increased; if not so, the delay sequence is recorded as a second sub-delay sequence; and then, based on the delay sequence, the first sub-delay sequence and the second sub-delay sequence, a relative position of the sampling position corresponding to the delay sequence and the center of the scan data window is obtained.
[0033] In some embodiments, as shown in FIG. 7, an embodiment of the present invention provides a delay sequence, a first sub-delay sequence and a second sub-delay sequence, and the delay sequence corresponding to the sampling position and the relative position of the scanning data window center are obtained according to the delay sequence, the first sub-delay sequence and the second sub-delay sequence. The step S57 includes: S571: A step of setting a difference between the delay sequence and the first sub-delay sequence as the first sub-delay sequence difference, and setting a difference between the second sub-delay sequence and the delay sequence as the second sub-delay sequence difference; S572: if the first sub-delay sequence difference is greater than the second sub-delay sequence, the sampling position corresponding to the delay sequence is on the left side of the scanning data window center in the first parallel data and the second parallel data; When the first sub-delay series difference is smaller than the second sub-delay series, the sampling position corresponding to the delay series is on the right side of the center of the scanning data window in the first parallel data and the second parallel data, When the first sub-delay series difference is equal to the second sub-delay series, the method includes a step that the sampling position corresponding to the delay series is at the center of the scanning data window in the first parallel data and the second parallel data. Specifically, in this embodiment, the delay series is recorded as step0, the first sub-delay series is recorded as step1, and the second sub-delay series is recorded as step2. When step0 - step1 > step2 - step0, the sampling position corresponding to step0 is on the left side of the center of the sampling data window in the first parallel data and the second parallel data. When step0 - step1 < step2 - step0, the sampling position corresponding to step0 is on the right side of the center of the sampling data window in the first parallel data and the second parallel data. When step0 - step1 = step2 - step0, the sampling position corresponding to step0 is at the center of the sampling data window in the first parallel data and the second parallel data. In some embodiments, the total delay of the first delay chain and the second delay chain is greater than the width of the serial data window.
[0034] In some embodiments, as shown in FIG. 6, it is a schematic diagram of the flow of another time series training method for an LVDS interface provided by the embodiment of the present invention. Before S1, S0: Further includes a step of scrambling the LVDS differential data, converting it into serial data by parallel-to-serial conversion, and then inputting it into the delay chain. After S4, S6: Further includes a step of descrambling and restoring the received LVDS differential data.
[0035] Specifically, in the existing time series training method in which the interface supports dynamic calibration of the sampling position, when there is no valid data in the interface, the window calibration fails due to the continuous existence of a constant 0 / constant 1 data stream, and the sampling position is shifted from the center of the data window. Therefore, in this embodiment, the LVDS differential data is scrambled by the scrambling module at the transmitting side of the LVDS transceiver in FIG. 2, the parallel data is converted into serial data by the module through parallel-serial conversion and sent to the receiving side of the LVDS transceiver, and the data output from the data path selection module is descrambled by the descrambling module at the receiving side of the LVDS transceiver. By scrambling and descrambling, it is possible to avoid the situation where the serial data stream becomes constant 0 / constant 1 when there is no valid data transfer at the transmitting side, which makes it impossible to realize time series training and window calibration at the receiving side, and to avoid the situation where the sampling position cannot be effectively obtained when there is no valid data for a long period of time.
[0036] In some embodiments, the smaller the delay sequence difference, the smaller the delay sequence difference due to on-chip errors and P / N slope asymmetry.
[0037] Specifically, in this embodiment, if the first delay series is step_path1 and the second delay series is step_path2, offset=step_path1-step_path2 characterizes the degree of asymmetry between the data of path1 and path2 due to the slew asymmetry between the P end and N end of the OCV and LVDS differential data, and the smaller the offset, the smaller the difference in the delay series due to the error on the same chip and the slew asymmetry between the P end and N end of the LVDS differential data.
[0038] In some embodiments, as shown in FIG. 8, an embodiment of the present invention provides a time series training device for an LVDS interface, the device including: A conversion module 701 for inputting a P end of an LVDS differential data signal into a first delay chain and converting it into a first parallel data through serial-parallel conversion, and inputting an N end of the LVDS differential data signal into a second delay chain and converting it into a second parallel data through serial-parallel conversion; a first sampling module 702 for sampling data using the second parallel data as reference data and the first parallel data as scanning data, collecting a relative position between a sampling position corresponding to a delay sequence and a center of a window of the scanning data, and recording the delay sequence as a first delay sequence when the sampling position corresponding to the delay sequence is located at the center of the window of the scanning data; a second sampling module 703 for sampling data using the first parallel data as reference data and the second parallel data as scanning data, and for sampling an initial delay sequence of the second parallel data as the first delay sequence, collecting a relative position between a sampling position corresponding to the delay sequence and a center of the scanning data window, and recording the first delay sequence as a second delay sequence when the sampling position corresponding to the first delay sequence is located at the center of the scanning data window; and a data output path determination module 704 for determining a delay sequence difference from the first delay sequence and the second delay sequence, setting a sum of the first delay sequence and half the delay sequence difference as a delay sequence of the first parallel data, and receiving the LVDS differential data as the second parallel data as scan data.
[0039] The specific limitations of the time series training device for LVDS interface may be referred to the limitations of the time series training method for LVDS interface described above, and will not be repeated here. All or part of each module in the time series training device for LVDS interface may be realized by software, hardware, or a combination thereof. Each module may be incorporated in a processor in a computer device in the form of hardware, may be independent of the processor, or may be stored in a memory in a computer device in the form of software, and may be called by the processor to execute operations corresponding to each module.
[0040] The terms used in the embodiments of the present invention are used only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a," "the," and "the" used in the embodiments of the present invention and the appended claims include the plural forms unless the context clearly indicates otherwise.
[0041] Depending on the context, "if" as used herein shall be interpreted as "when" or "when" or "responsive to determining" or "responsive to detecting." Similarly, depending on the context, "determining that" or "detecting a stated condition or event" shall be interpreted as "when it is determined that" or "responsive to determining that" or "detecting the stated condition or event" or "responsive to detecting the stated condition or event."
[0042] In some embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other forms. For example, the above-mentioned apparatus embodiments are merely illustrative, and the division of the units is merely a division of logical functions, and in reality, other division forms may be used, for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not implemented. In addition, the illustrated or discussed couplings or direct couplings or communication connections between each other may be indirect couplings or communication connections of some interfaces, devices or units, and may be of electrical, mechanical or other types.
[0043] The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall all be included within the protection scope of the present invention.
Claims
1. S1: inputting the P end of the LVDS differential data signal into a first delay chain, and converting it into a first parallel data by serial-parallel conversion; inputting the N end of the LVDS differential data signal into a second delay chain, and converting it into a second parallel data by serial-parallel conversion; S2: Sampling data using the second parallel data as reference data and the first parallel data as scanning data, collecting the relative positions of the sampling positions corresponding to the delay sequence and the center of the scanning data window, and when the sampling positions corresponding to the delay sequence are located at the center of the scanning data window, recording the delay sequence as a first delay sequence; S3: Sampling data using the first parallel data as reference data and the second parallel data as scanning data, and using the initial delay sequence of the second parallel data as the first delay sequence, collecting the relative positions of the sampling positions corresponding to the delay sequence and the center of the scanning data window, and when the sampling positions corresponding to the delay sequence are located at the center of the scanning data window, recording the first delay sequence as the second delay sequence; S4: determining a delay sequence difference from the first delay sequence and the second delay sequence, setting a sum of the first delay sequence and half the delay sequence difference as a delay sequence of the first parallel data, and receiving the LVDS difference data as the second parallel data as scan data.
2. The S2 is S21: Taking the second parallel data as reference data, setting an initial delay sequence of the first parallel data for sampling data, and collecting the relative position corresponding to the initial delay sequence, the initial delay sequence being smaller than the total delay sequence of the first delay chain; S22: if the sampling position corresponding to the initial delay sequence is on the left side of the window center of the first parallel data, decrease the initial delay sequence, update the decreased initial delay sequence to the initial delay sequence, and then collect the relative position again; if the sampling position corresponding to the initial delay sequence is on the right side of the window center of the first parallel data, increasing the initial delay sequence, updating the increased initial delay sequence to the initial delay sequence, and then collecting the relative position again; S23: determining the initial delay sequence as the first delay sequence when a sampling position corresponding to the initial delay sequence is located at the window center of the first parallel data. The time series training method for an LVDS interface according to claim 1, further comprising the step of:
3. The S3 is S31: Scanning the first parallel data as reference data and the first delay sequence as an initial delay sequence of the second parallel data, and simultaneously collecting the relative position corresponding to the initial delay sequence; S32: if the sampling position corresponding to the initial delay sequence is on the left side of the window center of the second parallel data, decrease the initial delay sequence, update the decreased initial delay sequence to the initial delay sequence, and then collect the relative position again; if the sampling position corresponding to the initial delay sequence is on the right side of the window center of the first parallel data, increasing the initial delay sequence, updating the increased initial delay sequence to the initial delay sequence, and then collecting the relative position again; S33: A step of setting the initial delay sequence as the second delay sequence when a sampling position corresponding to the initial delay sequence is located at a window center of the second parallel data. The time series training method for an LVDS interface according to claim 1, further comprising the steps of:
4. The step of acquiring the relative positions of the scan data window center and the sampling positions corresponding to the delay sequence at S2 and S3 includes: S51: Selecting one set of data from the first parallel data and the second parallel data as reference data, and collecting data from the other set of data as scan data, and a delay sequence of the scan data is the delay sequence corresponding to the scan data from the first parallel data and the second parallel data; S52: decreasing the delay sequence step by step and monitoring whether the reference data and the scan data match within a specific time; S53: If there is a match and the delay sequence has not decreased to zero, repeat S52; Otherwise, record the delay sequence as a first sub-delay sequence and proceed to S54. S54: Reloading the delay sequence; S55: increasing the delay sequence step by step and monitoring whether the reference data and the scan data match within a specific time; S56: If there is a match and the delay sequence has not reached the maximum delay sequence value, repeat S55; otherwise, recording the delay sequence as a second sub-delay sequence; S57: obtaining a first sub-delay sequence difference and a second sub-delay sequence difference based on the delay sequence, the first sub-delay sequence and the second sub-delay sequence, comparing the first sub-delay sequence difference with the second sub-delay sequence difference, and obtaining a relative position between a sampling position corresponding to the delay sequence and a center of a scanning data window.
5. The above S57 is S571: A step of setting a difference between the delay sequence and the first sub-delay sequence as the first sub-delay sequence difference, and setting a difference between the second sub-delay sequence and the delay sequence as the second sub-delay sequence difference; S572: if the first sub-delay sequence difference is greater than the second sub-delay sequence, the sampling position corresponding to the delay sequence is on the left side of the scanning data window center in the first parallel data and the second parallel data; When the first sub-delay sequence difference is smaller than the second sub-delay sequence, the sampling position corresponding to the delay sequence is on the right side of the scanning data window center in the first parallel data and the second parallel data; and if the first sub-delay sequence difference is equal to the second sub-delay sequence, the sampling position corresponding to the delay sequence is at a scan data window center in the first parallel data and the second parallel data.
6. 2. The time series training method for an LVDS interface of claim 1, wherein a total delay of the first delay chain and the second delay chain is greater than a width of a serial data window.
7. Before S1, S0: further comprising the steps of scrambling the LVDS differential data, converting it into serial data by parallel-serial conversion, and inputting it into a delay chain; After S4, 2. The time series training method for an LVDS interface according to claim 1, further comprising the step of: S6: descrambling the received LVDS difference data.
8. 3. The time sequence training method for an LVDS interface of claim 2, wherein the initial delay sequence is one-half of the total delay sequence of the first delay chain.
9. 2. The time series training method for an LVDS interface according to claim 1, wherein the smaller the delay sequence difference, the smaller the delay sequence difference due to on-chip errors and gradient asymmetry between the P end and the N end of the LVDS differential data.
10. A conversion module for inputting a P end of the LVDS differential data signal to a first delay chain and converting it into a first parallel data by serial-parallel conversion, and inputting an N end of the LVDS differential data signal to a second delay chain and converting it into a second parallel data by serial-parallel conversion; a first sampling module for sampling data using the second parallel data as reference data and the first parallel data as scan data, collecting a relative position between a sampling position corresponding to a delay sequence and a center of the scan data window, and recording the delay sequence as a first delay sequence when the sampling position corresponding to the delay sequence is located at the center of the scan data window; a second sampling module for sampling data using the first parallel data as reference data and the second parallel data as scan data, and for sampling an initial delay sequence of the second parallel data as the first delay sequence, collecting a relative position between a sampling position corresponding to the delay sequence and a center of the scan data window, and recording the first delay sequence as a second delay sequence when the sampling position corresponding to the first delay sequence is located at the center of the scan data window; a data output path determination module for determining a delay sequence difference from the first delay sequence and the second delay sequence, setting a sum of the first delay sequence and half the delay sequence difference as a delay sequence of the first parallel data, and receiving the LVDS difference data as the second parallel data as scan data.
Citation Information
Patent Citations
High-frequency intelligent half-bridge gate driving circuit for enhanced GaN HEMT
CN113541451A
Image sensor serial LVDS differential data interface calibration method, system and device
CN115357536A
Image formation apparatus
JP2020001339A
