CN110768664A - Data sampling method and device - Google Patents

Data sampling method and device Download PDF

Info

Publication number
CN110768664A
CN110768664A CN201911012247.4A CN201911012247A CN110768664A CN 110768664 A CN110768664 A CN 110768664A CN 201911012247 A CN201911012247 A CN 201911012247A CN 110768664 A CN110768664 A CN 110768664A
Authority
CN
China
Prior art keywords
signal
adjustment information
data
signal adjustment
training
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911012247.4A
Other languages
Chinese (zh)
Other versions
CN110768664B (en
Inventor
丁健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN201911012247.4A priority Critical patent/CN110768664B/en
Publication of CN110768664A publication Critical patent/CN110768664A/en
Application granted granted Critical
Publication of CN110768664B publication Critical patent/CN110768664B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION, OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/085Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal
    • H03L7/091Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal the phase or frequency detector using a sampling device

Abstract

The application provides a data sampling method and device. In the application, the target signal adjustment information is trained, so that when the first device subsequently sends the first application data signal and the channel associated clock signal to the second device, the first application data signal and the channel associated clock signal are adjusted according to the target signal adjustment information and sent to the second device. In this way, the second device may sample the first application Data signal based on the received adjusted associated clock signal and send a second application Data signal (e.g., Rx _ Data) to the first device, ensuring that the first device accurately samples the second application Data signal (e.g., Rx _ Data described above) according to the local sampling clock signal.

Description

Data sampling method and device
Technical Field
The present application relates to data communication technologies, and in particular, to a data sampling method and apparatus.
Background
In some applications, the following problems often arise: the data communication system is required to support high-rate applications, but the data communication system cannot satisfy the synchronous bidirectional communication condition capable of realizing high-rate applications due to line restrictions. The data communication system may be, for example, a data interaction system between a main control board and each line card in the subrack device.
In order to solve the above problem, a two-way communication (atypical two-way communication) manner is often adopted as shown in fig. 1. In fig. 1, a Device1 (such as a master control board in a subrack Device) is connected to a Device2 (such as a line card in a subrack Device). The atypical bidirectional communication shown in fig. 1 has less reception clock signals (Rx _ Clk) than the synchronous bidirectional communication shown in fig. 2. In the synchronous bidirectional communication scheme shown in fig. 2, Rx _ Clk is a channel associated clock signal of the Data signal (denoted as Rx _ Data) transmitted by Device2 to Device1, and is used by Device1 to sample Rx _ Data. However, due to the lack of Rx _ Clk signal in the atypical two-way communication scheme shown in fig. 1, it is often the case that Device1 is unable to sample Rx _ Data normally.
Disclosure of Invention
The application provides a data sampling method and a data sampling device so as to realize accurate data sampling.
The technical scheme provided by the application comprises the following steps:
a data sampling method applied to a first device in a data communication system, the method comprising:
in the link training process, determining N different signal adjustment information, wherein N is a positive integer greater than 1; wherein each signal adjustment information is used for adjusting a training data signal to be sent to a second device in the data communication system and a channel associated clock signal of the training data signal;
performing the following steps for each signal adjustment information: respectively adjusting the training data signal and the channel associated clock signal according to signal adjustment information, sending the adjusted training data signal and the channel associated clock signal to second equipment, sampling a training response data signal which is returned by the second equipment and used for responding to the adjusted training data signal according to a signal of a local sampling clock, and determining whether the signal adjustment information meets the set data communication requirement or not according to the training response data signal and the sent adjusted training data signal;
and determining target signal adjustment information according to all signal adjustment information meeting the set data communication requirement, wherein the target signal adjustment information is used for adjusting an application data signal sent to the second equipment by the first equipment after training is finished and a channel associated clock signal of the application data signal.
A data sampling apparatus, the apparatus being applied to a first device in a data communication system, the apparatus comprising:
a determining unit, configured to determine N different pieces of signal adjustment information during a link training process, where N is a positive integer greater than 1; wherein each signal adjustment information is used for adjusting a training data signal to be sent to a second device in the data communication system and a channel associated clock signal of the training data signal;
an adjusting unit, configured to perform the following steps for each signal adjustment information: respectively adjusting the training data signal and the channel associated clock signal according to signal adjustment information, sending the adjusted training data signal and the channel associated clock signal to second equipment, sampling a training response data signal which is returned by the second equipment and used for responding to the adjusted training data signal according to a signal of a local sampling clock, and determining whether the signal adjustment information meets the set data communication requirement or not according to the training response data signal and the sent adjusted training data signal;
and the second determining unit is used for determining target signal adjustment information according to all signal adjustment information meeting the set data communication requirement, wherein the target signal adjustment information is used for adjusting an application data signal sent to the second equipment by the first equipment after training is finished and a channel associated clock signal of the application data signal.
According to the technical scheme, the first device trains the target signal adjustment information, so that the first device adjusts the first application data signal and the associated clock signal according to the target signal adjustment information and sends the first application data signal and the associated clock signal to the second device when sending the first application data signal and the associated clock signal to the second device in the subsequent process. In this way, the second device may sample the first application Data signal and transmit a second application Data signal (e.g., Rx _ Data) to the first device based on the received adjusted associated clock signal. Because the second device is the second application Data signal (such as the Rx _ Data) sent based on the adjusted associated clock signal, and the target signal adjustment information meets the set Data communication requirement, the target signal adjustment information meeting the set Data communication requirement can ensure that the second application Data signal sampled by the first device is accurate, thereby realizing accurate Data sampling.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic diagram of atypical two-way communication;
FIG. 2 is a schematic diagram of synchronous two-way communication;
FIG. 3 is a signal diagram for an atypical two-way communication;
FIG. 4 is a flow chart of a method provided by an embodiment of the present application;
FIG. 5 is a flowchart illustrating a step 403 provided by an embodiment of the present application;
fig. 6 is a schematic networking diagram provided in an embodiment of the present application;
fig. 7 is a schematic diagram of signal transmission provided in an embodiment of the present application;
FIG. 8 is a schematic structural diagram of an apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram of a hardware structure of an apparatus according to an embodiment of the present disclosure.
Detailed Description
The atypical two-way communication scheme applied to the data communication system shown in fig. 1 is taken as an example: if in fig. 1 Device1 needs to initiate a read request, Device1 sends a read request Data signal (denoted as Tx _ Data) and a channel associated clock signal (denoted as Tx _ CLK) of Tx _ Data to Device 2. In one example, the Device1 can send a high level clock signal and a low level clock signal to the Device2 every clock cycle (e.g., one clock cycle from time T1 to time T2). The length of the clock period (i.e., the interval between time T1 and time T2) is determined by the original clock, which, if the original clock is 100M, means that the frequency is 100M per second, i.e., 1 hundred million clock periods per second. The Device1 may begin sending a request data signal on the rising edge of the clock signal. In one example, during one clock cycle, Device1 may send 1 bit of data (e.g., 0 or 1). FIG. 3 shows Tx _ Data and Tx _ CLK.
After Device1 sends Tx _ CLK, Device2 may receive Tx _ CLK. In each clock cycle, the Device2 may receive a high level clock signal and a low level clock signal. However, since there is a transmission delay between the Device1 and the Device2, when the transmission delay is delay1, the Device2 receives Tx _ CLK after delay 1. FIG. 3 shows Tx _ CLK received by Device 2.
After Device1 sends Tx _ Data, Device2 can receive Tx _ Data. In one example, if Device1 sends only 1 bit of data in one clock cycle, Device2 may sample the data only once per clock cycle (e.g., sample the data on the falling edge of the clock signal). Fig. 3 shows Tx _ Data received by Device 2.
After receiving Tx _ Data, Device2 resolves the Tx _ Data to find that it is a read request, and then sends the requested Data to Device1 via a response message. For one embodiment, Device2 may start sending data on the rising edge of Tx _ CLK. In one example, as with Device1, Device2 can send only 1 bit of data (e.g., 0 or 1) in one clock cycle.
Since Rx _ Data sent by Device2 does not have a channel associated clock signal Rx _ CLK, and because the signal delay between Device1 and Device2 is unknown, it is often the case that Device1 cannot sample Rx _ Data correctly. Even if Device1 samples the Data at a pre-configuration, such as on the rising edge of Tx _ CLK, it will be in error with the sampled Rx _ Data. Taking Device1 sampling Data on the rising edge of Tx _ CLK as an example, FIG. 3 shows the sampled Rx _ Data. It can be seen that the Data transition time of the sampled Rx _ Data exactly corresponds to the rising edge of Tx _ CLK, which does not meet the setup time (setup time) required by Device1 for the chip. Here, the setup time refers to the time until the rising edge of the clock signal comes, the data is stable and does not change, and if the setup time is not enough, the data cannot be driven into the flip-flop at the rising edge of the clock signal. The setup time that does not meet the chip requirement of Device1 will affect the sampled Rx _ Data, which will be in error.
In order to avoid the above errors, the embodiment of the present application provides a data sampling method as shown in fig. 4. The data sampling method is applied to a data communication system. In one example, the data communication system herein may be a network device (e.g., a router, switch, etc.). The network device may include a master board and at least one line card, the master board may be connected to each line card via a data bus, which may include, but is not limited to, an LVDS bus.
As shown in fig. 4, the process may include the following steps:
step 401, a first device determines N different signal adjustment information in a link training process; each signal adjustment information is used to adjust a training data signal to be sent to a second device in the data communication system and a channel associated clock signal of the training data signal.
Here, the first device and the second device are only named for convenience of description and are not intended to be limiting.
In step 401, N is a positive integer greater than 1.
In a specific implementation, a first Device, such as Device1 shown in fig. 1, sends a data signal (also referred to as an application data signal) with an associated clock signal to a second Device, such as Device2 shown in fig. 1. Thus, a Device2 of the second Device, such as that shown in fig. 1, can sample the data signal (also referred to as an application data signal for a particular application) that the first Device, such as Device1 of fig. 1, sends to the Device2 of the second Device, such as that shown in fig. 1, in dependence upon the channel associated clock signal sent by the first Device, such as Device1 of fig. 1, and the sampled data must be correct. However, the data signal sent by the second Device, such as Device2 shown in fig. 1, to the first Device, such as Device1 shown in fig. 1, is without the associated clock signal, so that it is difficult for the first Device, such as Device1 shown in fig. 1, to accurately sample the data signal sent by the second Device, such as Device2 shown in fig. 1. In order to ensure that the first Device, such as Device1 shown in fig. 1, accurately samples the data signal transmitted by the second Device, such as Device2 shown in fig. 1, embodiments of the present application perform link training to finally ensure that the first Device, such as Device1 shown in fig. 1, accurately samples the data signal transmitted by the second Device, such as Device2 shown in fig. 1. For how to perform link training, see step 401.
As depicted in step 401, the first device determines N different signal adjustment information during the training process. In one example, each signal adjustment information is used to adjust a training data signal to be transmitted to the second device and a channel associated clock signal of the training data signal. As an example, the training data signal may be a data signal to be transmitted to the second device, which is named for convenience of description.
As to what the signal adjustment information is specifically, how to adjust the training data signal to be sent to the second device and the associated clock signal of the training data signal will be described below, and details are not described here again.
Step 402, for each signal adjustment information, performing the following steps: respectively adjusting the training data signal and the channel associated clock signal according to the signal adjustment information, sending the adjusted training data signal and the channel associated clock signal to the second equipment, sampling a training response data signal which is returned by the second equipment and used for responding to the adjusted training data signal according to a signal of a local sampling clock, and determining whether the signal adjustment information meets the set data communication requirement or not according to the training response data signal and the sent adjusted training data signal.
In one example, the step 402 of determining whether the signal adjustment information satisfies the set data communication requirement according to the training response data signal and the transmitted adjusted training data signal may include:
and checking whether the data in the training response data signal is consistent with the data in the transmitted adjusted training data signal, if so, determining that the signal adjustment information meets the set data communication requirement, and otherwise, determining that the signal adjustment information does not meet the set data communication requirement.
Step 403, determining target signal adjustment information according to all signal adjustment information meeting the set data communication requirement, where the target signal adjustment information is used to adjust an application data signal sent by the first device to the second device after training is finished and a channel associated clock signal of the application data signal.
As an embodiment, the step 403 of determining the target signal adjustment information from all the signal adjustment information satisfying the configured data communication requirement may include the process shown in fig. 5, which is not repeated herein.
Finally, the target signal adjustment information can be determined according to all the signal adjustment information satisfying the set data communication requirement, via step 403. Then, in a specific application, if the first device needs to send a data signal (denoted as a first application data signal) and a channel associated clock signal of the first application data signal to the second device, the channel associated clock signal of the first application data signal and the first application data signal may be adjusted according to the target signal adjustment information, and then the adjusted first application data signal and the adjusted channel associated clock signal may be sent to the second device. In this way, the second device may sample the first application Data signal based on the received adjusted associated clock signal, and may also send the second application Data signal (such as Rx _ Data described above) to the first device based on the adjusted associated clock signal, so that, although the second device does not send the associated clock signal of the second application Data signal, even if the signal delay between the second device and the first device is unknown, the first device may sample the second application Data signal (such as Rx _ Data described above) according to the local sampling clock signal without the problem of sampling Data errors. Because the second device is the second application Data signal (such as the Rx _ Data) sent based on the adjusted associated clock signal, based on the description that the target signal adjustment information in step 402 or step 403 meets the set Data communication requirement, the second application Data signal finally sampled by the first device is accurate, and accurate Data sampling is realized.
The flow shown in fig. 4 is completed.
How to determine the target signal adjustment information according to all the signal adjustment information satisfying the set data communication requirement in the above step 403 is described as follows:
referring to fig. 5, fig. 5 is a schematic flow chart of step 403 provided in the embodiment of the present application. As shown in fig. 5, the process may include the following steps:
step 501, selecting one signal adjustment information satisfying a condition from all signal adjustment information satisfying a set data communication requirement, wherein the signal adjustment information satisfying the condition is: the sampled training response data signal meets the setup time requirement and the hold time requirement of the first device local chip, and the sampled training response data signal is used for responding to the training data signal adjusted based on the signal adjustment information meeting the condition.
As an embodiment, the N pieces of signal adjustment information include: n phase adjustment information, wherein each phase adjustment information is used for adjusting the phase of the training data signal and the phase of the associated clock signal of the training data signal. In one example, the same phase adjustment information adjusts the phase amounts of the associated clock signals of the training data signal and the training data signal to be the same.
Based on this, in step 501, selecting one signal adjustment information satisfying the condition from all signal adjustment information satisfying the set data communication requirement includes:
a step 1 of determining a Tx _ Clk phase corresponding to each piece of signal adjustment information satisfying the set data communication requirement; the Tx _ Clk phase is the phase of the associated clock signal obtained after the associated clock signal is adjusted according to the signal adjustment information;
a step 2 of calculating an average value of the Tx _ Clk phases corresponding to the respective signal adjustment information, and selecting the Tx _ Clk phase closest to the average value from the Tx _ Clk phases corresponding to the respective signal adjustment information satisfying the set data communication requirement;
step a3, determining the signal adjustment information corresponding to the Tx _ Clk phase closest to the average value as the target signal adjustment information.
In one example, the N phase adjustment information is obtained by sequentially increasing according to a set phase step width. For example, the phase step amplitude is 45 degrees, and the first phase adjustment information is: the phase adjustment is 45 degrees, and the second phase adjustment information is: the phase is adjusted by 90 degrees, and so on.
Step 502, determining the selected signal adjustment information meeting the condition as the target signal adjustment information.
The final selected target signal adjustment information is obtained, via step 502. Specifically, if the first device needs to transmit a data signal (marked as a first application data signal) and a channel associated clock signal of the first application data signal to the second device, the phases of the first application data signal and the channel associated clock signal of the first application data signal may be adjusted according to the target signal adjustment information, and then the adjusted first application data signal and channel associated clock signal may be transmitted to the second device. In this way, the second device may sample the first application Data signal based on the received adjusted associated clock signal, and may also send the second application Data signal (such as the above Rx _ Data) to the first device based on the adjusted associated clock signal, so that, although the second device does not send the associated clock signal of the second application Data signal, even if the signal delay between the second device and the first device is unknown, the first device may sample the second application Data signal (such as the above Rx _ Data) according to the sampling clock signal whose local phase is not changed all the time, and the problem of sampling Data error does not occur. Because the second device is the second application Data signal (such as the Rx _ Data) transmitted based on the adjusted associated clock signal, and the step of determining the target signal adjustment information based on the steps a1 to a3, the second application Data signal sampled by the first device finally satisfies the setup time requirement and the hold time requirement required by the local chip of the first device. The sampled second application data signal is accurate, enabling accurate data sampling.
The flow shown in fig. 5 is completed.
How to select the target signal adjustment information from all the signal adjustment information satisfying the set data communication requirement in the above step 403 is realized by the flow shown in fig. 5.
In order to make the flow shown in fig. 4 and 5 easier to understand, the following description is made by using a specific embodiment:
referring to fig. 6, fig. 6 is a schematic diagram of networking provided in the embodiment of the present application. In fig. 6, the device 601 maintains the phase of the sampling clock unchanged locally and always. Here, as an example, the phase of the sampling clock may be a power-on initial phase of a associated clock locally connected to the device 601.
FIG. 6 shows a training Data signal (denoted as Data _10) and a channel associated clock signal (denoted as CLK _20) for Data _10 that device 601 locally wants to send to device 602.
If 8 pieces of phase adjustment information for adjusting the phases of the signals Data _10 and CLK _20 are determined, phase adjustment information 1 to phase adjustment information 8 are sequentially present. The phase adjustment information 1 is a rising edge delay of 1ns, the phase adjustment information 2 is a rising edge delay of 2ns, the phase adjustment information 3 is a rising edge delay of 3ns, and so on, and the phase adjustment information 8 is a rising edge delay of 8 ns.
With the phase adjustment information 1: for example, if the rising edge is delayed by 1ns, then in FIG. 6, the device 601 first delays the rising edges of Data _10 and CLK _20 by 1 ns. At this time, Data _10 with a rising edge delay of 1ns can be denoted as Data _11, and CLK _20 with a rising edge delay of 1ns can be denoted as CLK _ 21.
Device 601 then sends CLK _21, Data _11 to device 602.
Device 602 receives CLK _21 and samples Data _11 using CLK _ 21. Because the Data _11 is sampled by the channel associated clock of the Data _11, as long as the Data _11 and the CLK _21 are basically consistent in time delay, the device 602 can guarantee the setup time and hold time requirements of the local chip of the device 602 when the device 602 samples the Data _11 by using the CLK _ 21. Device 602 then sends the sampled Data (which may be denoted as Data _12) using CLK _ 21.
Device 601 samples Data _12 at specified sampling points in the local clock signal (e.g., on rising or falling edges). FIG. 7 shows, by way of example, Data _12 sampled with a delay of 1ns by the rising edges of Data _10 and CLK _ 20.
The device 601 checks whether the sampled Data of Data _12 is consistent with the transmitted Data of Data _11, and if so, determines the above-mentioned phase adjustment information: the rising edge delay of Data _10 and CLK _20 of 1ns is sufficient to set the Data communication requirements.
The phase adjustment information 1: the rising edge delay is 1ns for example, and other phase adjustment information is similar. Fig. 7 also illustrates other phase adjusted information adjusted clock signals and sampled data signals.
If the following two phase adjustment information are finally found: if the phase adjustment information 1 and the phase adjustment information 2 do not satisfy the set data communication requirement, and the remaining 6 pieces of phase adjustment information, i.e., the phase adjustment information 3 to the phase adjustment information 8, all satisfy the set data communication requirement, as an embodiment, a random piece of phase adjustment information may be selected as the target phase adjustment information from the phase adjustment information that satisfies the set data communication requirement based on a specified sampling point (for example, a rising edge or a falling edge) in the sampling clock signal shown in fig. 7. Alternatively, as another embodiment, one signal adjustment information satisfying the condition may be selected as the target phase adjustment information from the phase adjustment information satisfying the set data communication requirement based on a specified sampling point (such as a rising edge or a falling edge) in the sampling clock signal shown in fig. 7. Here, the signal adjustment information satisfying the condition is: the setup time requirement and hold time requirement for the local chip requirement of the device 601 are met while sampling the Data signal for Data _10 adjusted in response to the signal adjustment information based on the satisfied condition. In one example, based on the 8 determined phase adjustment information, the phase adjustment information at the intermediate position, such as the phase adjustment information 5 and the phase adjustment information 6, may satisfy the above condition, that is, may be the selected signal adjustment information satisfying the condition.
After the target phase adjustment information is selected, the phase adjustment information 5: for example, if the device 601 needs to transmit the Data signal (denoted as Data _30) and the associated clock signal (denoted as CLK _40) of Data _30 to the device 602 based on the application in a specific application, the rising edges of Data _30 and CLK _40 may be delayed by 5ns according to the target signal adjustment information. For convenience of description, Data _30 whose rising edge is delayed by 5ns can be denoted as Data _31, and CLK _40 whose rising edge is delayed by 5ns can be denoted as CLK _ 41. The device 601 sends Data _31 and CLK _41 to the device 602. In this way, the device 602 can sample Data _31 based on the received CLK _41, and can also send a corresponding Data signal (denoted as Data _32) to the device 601 based on CLK _41, so that, although the device 602 does not send a channel associated clock signal of Data _32, even if the signal delay between the device 602 and the device 601 is unknown, the device 601 samples Data _32 according to a specified sampling point (such as a rising edge or a falling edge) of the local sampling clock signal, and the reason is that: because the device 602 is based on the Data _32 sent by the CLK _41, and the CLK _41 is adjusted according to the target phase adjustment information (i.e. the phase adjustment information 5: the rising edge delay is 5ns), the device 601 will meet the setup time requirement and the hold time requirement required by the local chip of the first device when sampling the Data _32 according to the specified sampling point (such as the rising edge or the falling edge) of the local sampling clock signal, and the sampled second application Data signal is accurate, thereby realizing accurate Data sampling.
The description of the embodiment shown in fig. 6 is thus completed.
The method provided by the present application is described above, and the device provided by the present application is described below:
referring to fig. 8, fig. 8 is a diagram illustrating the structure of the apparatus according to the present invention. The apparatus is applied to a first device in a data communication system. As shown in fig. 8, the apparatus may include:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining N different signal adjustment information in the link training process, and N is a positive integer greater than 1; wherein each signal adjustment information is used for adjusting a training data signal to be sent to a second device in the data communication system and a channel associated clock signal of the training data signal;
an adjusting unit, configured to perform the following steps for each signal adjustment information: respectively adjusting the training data signal and the channel associated clock signal according to signal adjustment information, sending the adjusted training data signal and the channel associated clock signal to second equipment, sampling a training response data signal which is returned by the second equipment and used for responding to the adjusted training data signal according to a signal of a local sampling clock, and determining whether the signal adjustment information meets the set data communication requirement or not according to the training response data signal and the sent adjusted training data signal;
and the second determining unit is used for determining target signal adjustment information according to all signal adjustment information meeting the set data communication requirement, wherein the target signal adjustment information is used for adjusting an application data signal sent to the second equipment by the first equipment after training is finished and a channel associated clock signal of the application data signal.
As an embodiment, the determining, by the adjusting unit, whether the signal adjustment information satisfies the set data communication requirement according to the training response data signal and the transmitted adjusted training data signal includes:
and checking whether the data in the training response data signal is consistent with the data in the transmitted adjusted training data signal, if so, determining that the signal adjustment information meets the set data communication requirement, and otherwise, determining that the signal adjustment information does not meet the set data communication requirement.
As an embodiment, the second determining unit determining the target signal adjustment information from all the signal adjustment information satisfying the set data communication requirement includes:
selecting one signal adjustment information satisfying a condition from all signal adjustment information satisfying a set data communication requirement, wherein the signal adjustment information satisfying the condition is: the sampled training response data signal meets the requirement of the first equipment local chip on the establishment time and the retention time, and is used for responding to the training data signal adjusted based on the signal adjustment information meeting the condition;
and determining the selected signal adjustment information meeting the condition as the target signal adjustment information.
As an embodiment, the N pieces of signal adjustment information include: n phase adjustment information, each phase adjustment information is used for adjusting the phase of the training data signal and the phase of the associated clock signal of the training data signal;
the selecting one signal adjustment information satisfying the condition from all signal adjustment information satisfying the set data communication requirement includes:
aiming at each signal adjustment information meeting the set data communication requirement, determining the Tx _ Clk phase corresponding to the signal adjustment information; the Tx _ Clk phase is the phase of the associated clock signal obtained after the associated clock signal is adjusted according to the signal adjustment information;
calculating an average value of the Tx _ Clk phases corresponding to the signal adjusting information, and selecting the Tx _ Clk phase closest to the average value from the Tx _ Clk phases corresponding to the signal adjusting information meeting the set data communication requirement;
determining signal adjustment information corresponding to the Tx _ Clk phase closest to the average value as the target signal adjustment information.
As an embodiment, the N phase adjustment information are obtained by sequentially increasing according to a set phase step amplitude.
Thus, the description of the device structure shown in fig. 8 is completed.
Correspondingly, the application also provides a hardware structure of the device shown in fig. 8. As shown in fig. 9, the hardware structure may include: a processor and a machine-readable storage medium having stored thereon machine-executable instructions executable by the processor; the processor is configured to execute machine-executable instructions to implement the methods disclosed in the above examples of the present application.
Based on the same application concept as the method, embodiments of the present application further provide a machine-readable storage medium, where several computer instructions are stored, and when the computer instructions are executed by a processor, the method disclosed in the above example of the present application can be implemented.
The machine-readable storage medium may be, for example, any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A data sampling method applied to a first device in a data communication system, the method comprising:
in the link training process, determining N different signal adjustment information, wherein N is a positive integer greater than 1; wherein each signal adjustment information is used for adjusting a training data signal to be sent to a second device in the data communication system and a channel associated clock signal of the training data signal;
performing the following steps for each signal adjustment information: respectively adjusting the training data signal and the channel associated clock signal according to signal adjustment information, sending the adjusted training data signal and the channel associated clock signal to second equipment, sampling a training response data signal which is returned by the second equipment and used for responding to the adjusted training data signal according to a signal of a local sampling clock, and determining whether the signal adjustment information meets the set data communication requirement or not according to the training response data signal and the sent adjusted training data signal;
and determining target signal adjustment information according to all signal adjustment information meeting the set data communication requirement, wherein the target signal adjustment information is used for adjusting an application data signal sent to the second equipment by the first equipment after training is finished and a channel associated clock signal of the application data signal.
2. The method of claim 1, wherein determining whether the signal adjustment information satisfies the set data communication requirement based on the training response data signal and the transmitted adjusted training data signal comprises:
and checking whether the data in the training response data signal is consistent with the data in the transmitted adjusted training data signal, if so, determining that the signal adjustment information meets the set data communication requirement, and otherwise, determining that the signal adjustment information does not meet the set data communication requirement.
3. The method of claim 1, wherein determining target signal adjustment information based on all signal adjustment information that meets the set data communication requirement comprises:
selecting one signal adjustment information satisfying a condition from all signal adjustment information satisfying a set data communication requirement, wherein the signal adjustment information satisfying the condition is: the sampled training response data signal meets the requirement of the first equipment local chip on the establishment time and the retention time, and is used for responding to the training data signal adjusted based on the signal adjustment information meeting the condition;
and determining the selected signal adjustment information meeting the condition as the target signal adjustment information.
4. The method of claim 3, wherein the N signal adjustment information comprises: n phase adjustment information, each phase adjustment information is used for adjusting the phase of the training data signal and the phase of the associated clock signal of the training data signal.
5. The method of claim 4, wherein selecting one signal adjustment information satisfying a condition from all signal adjustment information satisfying a set data communication requirement comprises:
aiming at each signal adjustment information meeting the set data communication requirement, determining the Tx _ Clk phase corresponding to the signal adjustment information; the Tx _ Clk phase is the phase of the associated clock signal obtained after the associated clock signal is adjusted according to the signal adjustment information;
calculating an average value of the Tx _ Clk phases corresponding to the signal adjusting information, and selecting the Tx _ Clk phase closest to the average value from the Tx _ Clk phases corresponding to the signal adjusting information meeting the set data communication requirement;
determining signal adjustment information corresponding to the Tx _ Clk phase closest to the average value as the target signal adjustment information.
6. The method according to claim 4 or 5, wherein the N phase adjustment information are obtained by sequentially increasing according to a set phase step amplitude.
7. A data sampling apparatus, for use in a first device in a data communication system, the apparatus comprising:
a first determining unit, configured to determine N different pieces of signal adjustment information during a link training process, where N is a positive integer greater than 1; wherein each signal adjustment information is used for adjusting a training data signal to be sent to a second device in the data communication system and a channel associated clock signal of the training data signal;
an adjusting unit, configured to perform the following steps for each signal adjustment information: respectively adjusting the training data signal and the channel associated clock signal according to signal adjustment information, sending the adjusted training data signal and the channel associated clock signal to second equipment, sampling a training response data signal which is returned by the second equipment and used for responding to the adjusted training data signal according to a signal of a local sampling clock, and determining whether the signal adjustment information meets the set data communication requirement or not according to the training response data signal and the sent adjusted training data signal;
and the second determining unit is used for determining target signal adjustment information according to all signal adjustment information meeting the set data communication requirement, wherein the target signal adjustment information is used for adjusting an application data signal sent to the second equipment by the first equipment after training is finished and a channel associated clock signal of the application data signal.
8. The apparatus of claim 7, wherein the adjusting unit determining whether the signal adjustment information satisfies the set data communication requirement according to the training response data signal and the transmitted adjusted training data signal comprises:
and checking whether the data in the training response data signal is consistent with the data in the transmitted adjusted training data signal, if so, determining that the signal adjustment information meets the set data communication requirement, and otherwise, determining that the signal adjustment information does not meet the set data communication requirement.
9. The apparatus of claim 7, wherein the second determining unit determines the target signal adjustment information according to all signal adjustment information satisfying the set data communication requirement comprises:
selecting one signal adjustment information satisfying a condition from all signal adjustment information satisfying a set data communication requirement, wherein the signal adjustment information satisfying the condition is: the sampled training response data signal meets the requirement of the first equipment local chip on the establishment time and the retention time, and is used for responding to the training data signal adjusted based on the signal adjustment information meeting the condition;
and determining the selected signal adjustment information meeting the condition as the target signal adjustment information.
10. The apparatus of claim 9, wherein the N signal adjustment information comprises: n phase adjustment information, each phase adjustment information is used for adjusting the phase of the training data signal and the phase of the associated clock signal of the training data signal;
the selecting one signal adjustment information satisfying the condition from all signal adjustment information satisfying the set data communication requirement includes:
aiming at each signal adjustment information meeting the set data communication requirement, determining the Tx _ Clk phase corresponding to the signal adjustment information; the Tx _ Clk phase is the phase of the associated clock signal obtained after the associated clock signal is adjusted according to the signal adjustment information;
calculating an average value of the Tx _ Clk phases corresponding to the signal adjusting information, and selecting the Tx _ Clk phase closest to the average value from the Tx _ Clk phases corresponding to the signal adjusting information meeting the set data communication requirement;
determining signal adjustment information corresponding to the Tx _ Clk phase closest to the average value as the target signal adjustment information.
CN201911012247.4A 2019-10-23 2019-10-23 Data sampling method and device Active CN110768664B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911012247.4A CN110768664B (en) 2019-10-23 2019-10-23 Data sampling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911012247.4A CN110768664B (en) 2019-10-23 2019-10-23 Data sampling method and device

Publications (2)

Publication Number Publication Date
CN110768664A true CN110768664A (en) 2020-02-07
CN110768664B CN110768664B (en) 2023-12-26

Family

ID=69333178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911012247.4A Active CN110768664B (en) 2019-10-23 2019-10-23 Data sampling method and device

Country Status (1)

Country Link
CN (1) CN110768664B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459069A (en) * 2020-04-14 2020-07-28 山东高云半导体科技有限公司 First control module, second control module, data transmission system and control method
WO2023207376A1 (en) * 2022-04-25 2023-11-02 腾讯科技(深圳)有限公司 Time sequence adjustment method and apparatus, storage medium, and electronic device
CN117056269A (en) * 2023-10-11 2023-11-14 芯耀辉科技有限公司 Data alignment method for parallel interface connection, computer equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787427A (en) * 2004-12-10 2006-06-14 大唐移动通信设备有限公司 Method for adjusting receiving data delaying non-uniform by channel associated clock signal
US20080005402A1 (en) * 2006-04-25 2008-01-03 Samsung Electronics Co., Ltd. Gals-based network-on-chip and data transfer method thereof
US20140233612A1 (en) * 2013-02-20 2014-08-21 Nvidia Corporation Technique for optimizing the phase of a data signal transmitted across a communication link
CN104571264A (en) * 2014-12-29 2015-04-29 大唐移动通信设备有限公司 Delay adjusting method and delay adjusting device
CN105391663A (en) * 2015-10-09 2016-03-09 浙江大华技术股份有限公司 Signal transmission method and system
US20160147703A1 (en) * 2014-07-02 2016-05-26 Anapass Inc. Bidirectional communication method and bidirectional communication apparatus using the same
WO2018112903A1 (en) * 2016-12-23 2018-06-28 华为技术有限公司 Method and device for clock synchronization

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787427A (en) * 2004-12-10 2006-06-14 大唐移动通信设备有限公司 Method for adjusting receiving data delaying non-uniform by channel associated clock signal
US20080005402A1 (en) * 2006-04-25 2008-01-03 Samsung Electronics Co., Ltd. Gals-based network-on-chip and data transfer method thereof
US20140233612A1 (en) * 2013-02-20 2014-08-21 Nvidia Corporation Technique for optimizing the phase of a data signal transmitted across a communication link
US20160147703A1 (en) * 2014-07-02 2016-05-26 Anapass Inc. Bidirectional communication method and bidirectional communication apparatus using the same
CN104571264A (en) * 2014-12-29 2015-04-29 大唐移动通信设备有限公司 Delay adjusting method and delay adjusting device
CN105391663A (en) * 2015-10-09 2016-03-09 浙江大华技术股份有限公司 Signal transmission method and system
WO2018112903A1 (en) * 2016-12-23 2018-06-28 华为技术有限公司 Method and device for clock synchronization

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘丽格;李天保;石鑫刚;: "一种板间高速传输系统的设计与实现", 无线电通信技术, no. 04 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459069A (en) * 2020-04-14 2020-07-28 山东高云半导体科技有限公司 First control module, second control module, data transmission system and control method
WO2023207376A1 (en) * 2022-04-25 2023-11-02 腾讯科技(深圳)有限公司 Time sequence adjustment method and apparatus, storage medium, and electronic device
CN117056269A (en) * 2023-10-11 2023-11-14 芯耀辉科技有限公司 Data alignment method for parallel interface connection, computer equipment and medium
CN117056269B (en) * 2023-10-11 2024-02-09 芯耀辉科技有限公司 Data alignment method for parallel interface connection, computer equipment and medium

Also Published As

Publication number Publication date
CN110768664B (en) 2023-12-26

Similar Documents

Publication Publication Date Title
US10289600B2 (en) Reducing transmitter encoding jitter in a C-PHY interface using multiple clock phases to launch symbols
JP6568247B2 (en) N-phase signal transition alignment
CN110768664B (en) Data sampling method and device
KR101749202B1 (en) Method, apparatus, and system for generating timestamp
CN109474986A (en) Uplink synchronisation method, device, equipment, storage medium and LTE communication system
US9160585B2 (en) Data interface synchronization
US7555590B2 (en) Fast buffer pointer across clock domains
TWI769274B (en) Electronic circuit configured to adjust skew between clock signals
CN109392074B (en) Clock calibration method and device
US11061432B2 (en) Data handoff between two clock domains sharing a fundamental beat
KR101297683B1 (en) Method and apparatus for adjustment of synchronous clock signals
US10347347B1 (en) Link training mechanism by controlling delay in data path
CN105578585B (en) Method, device and communication equipment for determining link delay
KR101447506B1 (en) Bias and random delay cancellation
JP2018046489A (en) Semiconductor device
US9184907B2 (en) Flexible threshold counter for clock-and-data recovery
US9568944B2 (en) Distributed timer subsystem across multiple devices
EP3529956B1 (en) Reducing transmitter encoding jitter in a c-phy interface using multiple clock phases to launch symbols
WO2018214856A1 (en) Method and device for data processing
US10020035B2 (en) Reception circuit
JP2012054702A (en) Host controller for setting sampling phase by sharing dll
US7243253B1 (en) Repeating switching of a cross-connect and a timing source in a network element through the use of a phase adjuster
JPWO2008152755A1 (en) Timing recovery circuit, communication node, network system, and electronic device
CN109155798B (en) Asynchronous FIFO circuit and time delay determination method
US20060222131A1 (en) Method for sampling reverse data and a reverse data sampling circuit for performing the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant