A sampling window adaptive adjustment system and method
By combining the control module and the delay module, the optimal delay value is calculated using the training sequence and the incremental delay value. This solves the problem of the sampling window between the ADC and the FPGA becoming smaller under high sampling rates, ensuring the stability of data transmission.
Patent Information
- Application Number
- CN202211016269.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-24
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2042-08-24
AI Technical Summary
In communication systems, as the sampling rate increases, the effective sampling window between the ADC and the FPGA becomes smaller, reducing the reliability of data transmission.
The delay module and trigger are controlled by the control module. The optimal delay value is calculated by using the training sequence and the method of increasing the delay value, so as to ensure that the trigger samples in the best sampling window.
Stable data sampling at high sampling rates was achieved, ensuring the reliability of data transmission.
Smart Images

Figure CN115374036B_ABST
Abstract
Description
Technical Field
[0001] This disclosure generally relates to the field of communications, and specifically to a sampling window adaptive adjustment system and method. Background Technology
[0002] In current communication systems, analog signals received by the receiver are typically converted to digital signals by an ADC (Analog-to-Digital Converter) before being sent to an FPGA for processing. Data transmission between the ADC and the FPGA usually uses a source-synchronous LVDS DDR interface. With increasing system performance requirements and advancements in semiconductor technology, signal sampling rates are becoming increasingly higher, resulting in a very narrow effective sampling window between the ADC and the FPGA. For example, at a sampling rate of 100MHz, the signal width using DDR transmission is 5ns. Subtracting 1ns for signal edge transitions, the actual effective sampling window width is 4ns. If the sampling rate increases to 250MHz, the signal width using DDR transmission is 2ns. Subtracting 1ns for signal edge transitions, the actual effective sampling window width is only 1ns. The drastic reduction in the effective sampling window as the sampling rate increases leads to decreased data transmission reliability. Summary of the Invention
[0003] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a sampling window adaptive adjustment system and method that can solve the above-mentioned technical problems.
[0004] The first aspect of this application provides a sampling window adaptive adjustment system, comprising:
[0005] The first delay module has its input terminal connected to an external output device;
[0006] The first flip-flop has its data input terminal connected to the output terminal of the first delay module, and its clock input terminal connected to an external clock.
[0007] The control module has its input terminal connected to the data output terminal of the first delay module, and its output terminal connected to the delay adjustment terminal of the first delay module and the input terminal of an external output device.
[0008] The control module is configured to:
[0009] Control the external output device to send the training sequence to the first delay module;
[0010] The delay value of the first delay module is controlled to increment from 0;
[0011] Receive the first sampling sequence output by the first trigger corresponding to different delay values;
[0012] Obtain the first sampled data in the first sampled sequence that is consistent with the training sequence, and obtain the first maximum delay value and the first minimum delay value corresponding to all the first sampled data;
[0013] Calculate the first optimal delay value, which is the average of the first maximum delay value and the first minimum delay value;
[0014] The first delay module is controlled to delay by the first optimal delay value so that the first trigger samples within the optimal sampling window.
[0015] According to the technical solution provided in the embodiments of this application, the control module is further configured to: control the external output device to send the sampled sequence to the adjusted first delay module, and receive the first output sequence output by the first trigger.
[0016] The technical solution provided according to the embodiments of this application also includes:
[0017] The second delay module has its input terminal connected to an external output device and its delay adjustment terminal connected to the output terminal of the control module.
[0018] The second trigger has its data input terminal connected to the output terminal of the second delay module, its clock input terminal connected to the external clock, and its data output terminal connected to the input terminal of the control module.
[0019] The control module is also configured to:
[0020] S71: Simultaneously, control the external output device to send the sampled sequence to the adjusted first delay module, and send the sampled sequence to the second delay module;
[0021] S72: Control the delay value of the second delay module to increment from 0;
[0022] S73: Receive the second sampling sequence output by the second trigger for different delay values;
[0023] S74: Obtain the second sampled data in the second sampled sequence that is consistent with the first output sequence, and obtain the second maximum delay value and the second minimum delay value corresponding to all the second sampled data;
[0024] S75: Calculate the second optimal delay value, which is the average of the second maximum delay value and the second minimum delay value;
[0025] S76: Control the first delay module to delay with the second optimal delay value, so that the first trigger samples in the optimal sampling window;
[0026] S77: Repeat steps S71-S76.
[0027] According to the technical solution provided in the embodiments of this application, the external output device includes:
[0028] An ADC module is provided, wherein the input terminal of the ADC module is connected to the output terminal of the control module, and the output terminal of the ADC module is connected to the input terminals of the first delay module and the second delay module, respectively.
[0029] An external clock module is connected to the clock input terminals of the first flip-flop and the second flip-flop, respectively.
[0030] According to the technical solution provided in the embodiments of this application, the input terminal of the ADC module is connected to the output terminal of the control module through a control bus; the output terminal of the control module is connected to the delay adjustment terminal of the first delay module through a first control line, and the output terminal of the control module is connected to the delay adjustment terminal of the second delay module through a second control line.
[0031] A second aspect of this application provides a sampling window adaptive adjustment method, employing a sampling window adaptive adjustment system as described above, the sampling window adaptive adjustment method comprising the following steps:
[0032] Control the external output device to send the training sequence to the first delay module;
[0033] The delay value of the first delay module is controlled to increment from 0;
[0034] Receive the first sampling sequence output by the first trigger corresponding to different delay values;
[0035] Obtain the first sampled data in the first sampled sequence that is consistent with the training series, and obtain the first maximum delay value and the first minimum delay value corresponding to the first sampled data;
[0036] Calculate the first optimal delay value, which is the average of the first maximum delay value and the first minimum delay value;
[0037] The first delay module is controlled to delay by the first optimal delay value so that the first trigger samples within the optimal sampling window.
[0038] According to the technical solution provided in the embodiments of this application, the external output device is controlled to send the sampled sequence to the adjusted first delay module and receive the first output sequence output by the first trigger.
[0039] According to the technical solution provided in the embodiments of this application, the external output device is connected to the input terminal of the second delay module, the delay adjustment terminal of the second delay module is connected to the output terminal of the control module, the output terminal of the second delay module is connected to the data input terminal of the second flip-flop, the clock input terminal of the second flip-flop is connected to the external clock, and the data output terminal of the second flip-flop is connected to the input terminal of the control module. The sampling window adaptive adjustment method further includes the following steps:
[0040] S71: Simultaneously, control the external output device to send the sampled sequence to the adjusted first delay module, and send the sampled sequence to the second delay module;
[0041] S72: Control the delay value of the second delay module to increment from 0;
[0042] S73: Receive the second sampling sequence output by the second trigger for different delay values;
[0043] S74: Obtain the second sampled data in the second sampled sequence that is consistent with the first output sequence, and obtain the second maximum delay value and the second minimum delay value corresponding to all the second sampled data;
[0044] S75: Calculate the second optimal delay value, which is the average of the second maximum delay value and the second minimum delay value;
[0045] S76: Control the first delay module to delay with the second optimal delay value, so that the first trigger samples in the optimal sampling window;
[0046] S77: Repeat steps S71-S76.
[0047] The beneficial effects of this application are as follows: Based on the technical solution provided in this application, during use, the control module controls the external output device to send a training sequence to the first delay module, and controls the delay value of the first delay module to increment from 0; the control module receives the first sampling sequence output by the first trigger corresponding to different delay values, and obtains the first sampling data in the first sampling sequence that is consistent with the training sequence, and obtains the first maximum delay value and the first minimum delay value corresponding to all the first sampling data; calculates the average of the first maximum delay value and the first minimum delay value to obtain the first optimal delay value; the control module controls the first delay module to delay with the first optimal delay value, so that the first trigger samples in the optimal sampling window. Through the above structure, an effective and stable data sampling window is found by using a training method, ensuring that the first trigger samples in the optimal sampling window, so that the effective sampling window is consistent with the signal width during transmission, and ensuring the reliability of data transmission. Attached Figure Description
[0048] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0049] Figure 1 This is a schematic diagram of the structure of a sampling window adaptive adjustment system according to this application;
[0050] Figure 2 This is a first schematic diagram of a sampling window adaptive adjustment method in this application;
[0051] Figure 3 This is a second schematic diagram of a sampling window adaptive adjustment method in this application.
[0052] In the diagram: 1. First delay module; 2. Second delay module; 3. First flip-flop; 4. Second flip-flop; 5. Control module; 6. External output device; 7. ADC module; 8. External clock module. Detailed Implementation
[0053] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the invention. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.
[0054] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0055] Example 1
[0056] Please refer to Figure 1 A schematic diagram of a sampling window adaptive adjustment system provided in this application includes:
[0057] The first delay module 1 has its input terminal connected to the external output device 6;
[0058] The first trigger 3 has its data input terminal connected to the output terminal of the first delay module 1, and its clock input terminal connected to an external clock.
[0059] The control module 5 has its input terminal connected to the data output terminal of the first delay module 1, and its output terminal connected to the delay adjustment terminal of the first delay module 1 and the input terminal of the external output device 6.
[0060] The control module 5 is configured to:
[0061] The external output device 6 is controlled to send the training sequence to the first delay module 1;
[0062] The delay value of the first delay module 1 is controlled to increment from 0;
[0063] Receive the first sampling sequence output by the first trigger 3 corresponding to different delay values;
[0064] Obtain the first sampled data in the first sampled sequence that is consistent with the training sequence, and obtain the first maximum delay value and the first minimum delay value corresponding to all the first sampled data;
[0065] Calculate the first optimal delay value, which is the average of the first maximum delay value and the first minimum delay value;
[0066] The first delay module 1 is controlled to delay by the first optimal delay value so that the first trigger samples in the optimal sampling window.
[0067] Specifically, such as Figure 1 As shown, D is the data input terminal, C is the clock input terminal, and Q is the data output terminal;
[0068] In some embodiments, the delay unit of the first delay module 1 is 32-order, and the delay value of the first delay module 1 starts from 0 and increases every 78ps until it increases to 31.
[0069] Working principle: In use, the control module 5 controls the external output device 6 to send a training sequence to the first delay module 1, and controls the delay value of the first delay module 1 to increment from 0 until it reaches 31; the control module 5 receives the first sampling sequence output by the first trigger 3 corresponding to different delay values, and obtains the first sampling data in the first sampling sequence that is consistent with the training sequence, thus obtaining the first maximum delay value and the first minimum delay value corresponding to all the first sampling data; the control module 5 calculates the average of the first maximum delay value and the first minimum delay value to obtain the first optimal delay value; the control module 5 controls the first delay module 1 to delay with the first optimal delay value, so that the first trigger 3 samples within the optimal sampling window. Through the above structure, an effective and stable data sampling window is found using a training method, ensuring that the first trigger 3 samples within the optimal sampling window, making the effective sampling window consistent with the signal width during transmission, thus guaranteeing the reliability of data transmission.
[0070] In some embodiments, the control module 5 is further configured to: control the external output device 6 to send the sampled sequence to the adjusted first delay module 1, and receive the first output sequence output by the first trigger 3.
[0071] In some embodiments, after the control module 5 controls the first delay module 1 to delay by the first optimal delay value, the control module 5 controls the external output device 6 to send the sampled sequence to the adjusted first delay module 1 and receive the first output sequence output by the first trigger 3, thereby completing the data transmission between the ADC and the FPGA.
[0072] In some implementations, it also includes:
[0073] The second delay module 2 has its input terminal connected to the external output device 6, and its delay adjustment terminal connected to the output terminal of the control module 5.
[0074] The second trigger 4 has its data input terminal connected to the output terminal of the second delay module 2, its clock input terminal connected to the external clock, and its data output terminal connected to the input terminal of the control module 5.
[0075] The control module 5 is also configured to:
[0076] S71: While controlling the external output device 6 to send the sampled sequence to the adjusted first delay module 1, the sampled sequence is also sent to the second delay module 2;
[0077] S72: Control the delay value of the second delay module 2 to increment from 0;
[0078] S73: Receive the second sampling sequence output by the second trigger 4 corresponding to different delay values;
[0079] S74: Obtain the second sampled data in the second sampled sequence that is consistent with the first output sequence, and obtain the second maximum delay value and the second minimum delay value corresponding to all the second sampled data;
[0080] S75: Calculate the second optimal delay value, which is the average of the second maximum delay value and the second minimum delay value;
[0081] S76: Control the first delay module 1 to delay with the second optimal delay value, so that the first trigger 3 samples in the optimal sampling window;
[0082] S77: Repeat steps S71-S76.
[0083] In some embodiments, the delay unit of the second delay module 2 is 32-order, and the delay value of the second delay module 2 starts from 0 and increases every 78ps until it reaches 31.
[0084] In some embodiments, the sampling window may drift due to changes in conditions such as temperature changes and device aging during device use. Therefore, while setting the first delay module and the first trigger, a second delay module and a second trigger are added to monitor the change in the effective sampling window position in real time during operation and adaptively adjust the signal sampling time according to the effective sampling window position, so as to ensure that the signal is sampled in the optimal sampling window.
[0085] The specific process is as follows: After the control module 5 controls the first delay module 1 to delay by the first optimal delay value, the control module 4 controls the external output device 6 to send the sampled sequence to the adjusted first delay module 1, and simultaneously sends the sampled sequence to the second delay module 2; the control module receives the first output sequence output by the first trigger 3, and at the same time, the control module 5 controls the delay value of the second delay module 2 to increment from 0 until it reaches 31; the control module 5 receives the second sampled sequence output by the second trigger 4 corresponding to different delay values, and the control module 5 obtains the second sampled sequence and the first output sequence. The control module 5 obtains the second maximum delay value and the second minimum delay value corresponding to all the second sampled data, and then calculates the average of the second maximum delay value and the second minimum delay value to obtain the second optimal delay value. The control module 5 controls the first delay module 1 to delay with the second optimal delay value so that the first trigger 3 samples in the optimal sampling window. During data transmission, the above process is repeated, and the change of the effective sampling window position is monitored in real time. The delay value of the first delay module 1 is adjusted according to the effective sampling window position to ensure that the first trigger 3 always samples in the optimal sampling window.
[0086] In some embodiments, the external output device 6 includes:
[0087] ADC module 7, the input terminal of which is connected to the output terminal of the control module 5, and the output terminal of the ADC module 7 is connected to the input terminal of the first delay module 1 and the input terminal of the second delay module 2 respectively;
[0088] An external clock module 8 is connected to the clock input terminal of the first flip-flop 3 and the clock input terminal of the second flip-flop 4, respectively.
[0089] Specifically, the ADC module 7 is used to convert the input analog signal into a digital signal for output;
[0090] Specifically, the ADC module itself stores a training sequence, which is a set sequence, and the control module 5 controls the ADC module to send the training sequence to the first delay module 1;
[0091] In some embodiments, the sampling window adaptive adjustment system is integrated into the FPGA chip for data transmission between the ADC and the FPGA; in use, the control module controls the ADC module to convert the input analog signal into a digital signal, and sends the digital signal as the sampling sequence to the first delay module 1 and the second delay module 2.
[0092] Specifically, the external clock module 8 is connected to the clock input terminal of the first flip-flop 3 and the clock input terminal of the second flip-flop 4, respectively, and the first flip-flop 3 and the second flip-flop 4 sample when the external clock reaches the rising edge.
[0093] In some embodiments, the input terminal of the ADC module 7 is connected to the output terminal of the control module 5 via a control bus; the output terminal of the control module 5 is connected to the delay adjustment terminal of the first delay module 1 via a first control line; and the output terminal of the control module 5 is connected to the delay adjustment terminal of the second delay module 2 via a second control line.
[0094] Specifically, such as Figure 1 As shown, SPI is the control bus, SET1 is the first control line, and SET2 is the second control line;
[0095] In some embodiments, the input terminal of the ADC module 7 is connected to the output terminal of the control module 5 via a control bus, thereby enabling the control module 5 to control the ADC module 7; the output terminal of the control module 5 is connected to the delay adjustment terminal of the first delay module 1 via a first control line, and the output terminal of the control module 5 is connected to the delay adjustment terminal of the second delay module 2 via a second control line, thereby enabling the control module 5 to control the first delay module 1 and the second delay module 2.
[0096] Example 2
[0097] refer to Figures 2-3 This application provides a schematic diagram of a sampling window adaptive adjustment method, which employs a sampling window adaptive adjustment system as described above. The sampling window adaptive adjustment method includes the following steps:
[0098] S1: Control the external output device 6 to send the training sequence to the first delay module 1;
[0099] S2: Control the delay value of the first delay module 1 to increment from 0;
[0100] S3: Receive the first sampling sequence output by the first trigger 3 corresponding to different delay values;
[0101] S4: Obtain the first sampled data in the first sampled sequence that is consistent with the training series, and obtain the first maximum delay value and the first minimum delay value corresponding to the first sampled data;
[0102] S5: Calculate the first optimal delay value, which is the average of the first maximum delay value and the first minimum delay value;
[0103] S6: Control the first delay module 1 to delay with the first optimal delay value so that the first trigger 3 samples in the optimal sampling window.
[0104] In some implementations,
[0105] S7: Control the external output device 6 to send the sampled sequence to the adjusted first delay module 1, and receive the first output sequence output by the first trigger 3.
[0106] In some embodiments, the external output device 6 is connected to the input terminal of the second delay module 2, the delay adjustment terminal of the second delay module 2 is connected to the output terminal of the control module 5, the output terminal of the second delay module 2 is connected to the data input terminal of the second trigger 4, the clock input terminal of the second trigger 4 is connected to the external clock, and the data output terminal of the second trigger 4 is connected to the input terminal of the control module 5. The adaptive adjustment method for the sampling window further includes the following steps:
[0107] S71: While controlling the external output device 6 to send the sampled sequence to the adjusted first delay module 1, the sampled sequence is also sent to the second delay module 2;
[0108] S72: Control the delay value of the second delay module 2 to increment from 0;
[0109] S73: Receive the second sampling sequence output by the second trigger 4 corresponding to different delay values;
[0110] S74: Obtain the second sampled data in the second sampled sequence that is consistent with the first output sequence, and obtain the second maximum delay value and the second minimum delay value corresponding to all the second sampled data;
[0111] S75: Calculate the second optimal delay value, which is the average of the second maximum delay value and the second minimum delay value;
[0112] S76: Control the first delay module 1 to delay with the second optimal delay value, so that the first trigger 3 samples in the optimal sampling window;
[0113] S77: Repeat steps S71-S76.
[0114] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.
Claims
1. A sampling window adaptive adjustment system, characterized in that, include: The first delay module (1) has its input terminal connected to the external output device (6); The first flip-flop (3) has its data input terminal connected to the output terminal of the first delay module (1), and its clock input terminal connected to an external clock. The control module (5) has its input terminal connected to the data output terminal of the first delay module (1), and its output terminal connected to the delay adjustment terminal of the first delay module (1) and the input terminal of the external output device (6). The control module (5) is configured to: Control the external output device (6) to send the training sequence to the first delay module (1); The delay value of the first delay module (1) is incremented from 0. Receive the first sampling sequence output by the first trigger (3) corresponding to different delay values; Obtain the first sampled data in the first sampled sequence that is consistent with the training sequence. Obtain the first maximum delay value and the first minimum delay value corresponding to all the first sampled data; Calculate the first optimal delay value, which is the average of the first maximum delay value and the first minimum delay value; Control the first delay module (1) to delay with the first optimal delay value so that the first trigger (3) samples in the optimal sampling window; The control module (5) is also configured to: control the external output device (6) to send the sampled sequence to the adjusted first delay module (1) and receive the first output sequence output by the first trigger (3); Also includes: The second delay module (2) has its input terminal connected to the external output device (6) and its delay adjustment terminal connected to the output terminal of the control module (5). The second flip-flop (4) has its data input terminal connected to the output terminal of the second delay module (2), its clock input terminal connected to the external clock, and its data output terminal connected to the input terminal of the control module (5). The control module (5) is also configured to: S71: While controlling the external output device (6) to send the sampled sequence to the adjusted first delay module (1), the external output device (6) also sends the sampled sequence to the second delay module (2); S72: Control the delay value of the second delay module (2) to increment from 0; S73: Receive the second sampling sequence output by the second trigger (4) for different delay values; S74: Obtain the second sampled data in the second sampled sequence that is consistent with the first output sequence, and obtain the second maximum delay value and the second minimum delay value corresponding to all the second sampled data; S75: Calculate the second optimal delay value, which is the average of the second maximum delay value and the second minimum delay value; S76: Control the first delay module (1) to delay with the second optimal delay value so that the first trigger (3) samples in the optimal sampling window; S77: Repeat steps S71-S76.
2. The sampling window adaptive adjustment system according to claim 1, characterized in that, The external output device (6) includes: ADC module (7), the input terminal of the ADC module (7) is connected to the output terminal of the control module (5), and the output terminal of the ADC module (7) is connected to the input terminal of the first delay module (1) and the input terminal of the second delay module (2) respectively; An external clock module (8) is connected to the clock input terminal of the first flip-flop (3) and the clock input terminal of the second flip-flop (4), respectively.
3. The sampling window adaptive adjustment system according to claim 2, characterized in that, The input terminal of the ADC module (7) is connected to the output terminal of the control module (5) via a control bus; the output terminal of the control module (5) is connected to the delay adjustment terminal of the first delay module (1) via a first control line; and the output terminal of the control module (5) is connected to the delay adjustment terminal of the second delay module (2) via a second control line.
4. A method for adaptive adjustment of the sampling window, characterized in that, The sampling window adaptive adjustment system according to claim 1, wherein the sampling window adaptive adjustment method includes the following steps: Control the external output device (6) to send the training sequence to the first delay module (1); The delay value of the first delay module (1) is incremented from 0. Receive the first sampling sequence output by the first trigger (3) corresponding to different delay values; Obtain the first sampled data in the first sampled sequence that is consistent with the training series, and obtain the first maximum delay value and the first minimum delay value corresponding to the first sampled data; Calculate the first optimal delay value, which is the average of the first maximum delay value and the first minimum delay value; Control the first delay module (1) to delay with the first optimal delay value so that the first trigger (3) samples in the optimal sampling window; It also includes the following steps: S71: Control the external output device (6) to send the sampled sequence to the adjusted first delay module (1) and simultaneously send the sampled sequence to the second delay module (2); S72: Control the delay value of the second delay module (2) to increment from 0; S73: Receive the second sampling sequence output by the second trigger (4) for different delay values; S74: Obtain the second sampled data in the second sampled sequence that is consistent with the first output sequence, and obtain the second maximum delay value and the second minimum delay value corresponding to all the second sampled data; S75: Calculate the second optimal delay value, which is the average of the second maximum delay value and the second minimum delay value; S76: Control the first delay module (1) to perform a delay using the second optimal delay value. At that time, so that the first trigger (3) samples in the optimal sampling window; S77: Repeat steps S71-S76.
Citation Information
Patent Citations
Data sampling clock edge placement training for high speed gpu-memory interface
CN1930559A
