A low-jitter code waveform synthesis device based on real-time edge single-point interpolation
By using real-time edge single-point interpolation technology in digital waveform synthesis, the problem of jitter under fixed clock and image spur under variable clock is solved, and code waveform synthesis with high resolution and low storage resources is realized, which is suitable for large-capacity applications. Pattern sequence processing.
Patent Information
- Application Number
- CN202410299196.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-15
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-03-15
AI Technical Summary
Existing digital waveform synthesis methods have time interval errors under fixed clocks that cause jitter. Methods based on variable clocks require high-cost and difficult low-pass filters to filter out image spurious signals, and cannot effectively handle large-capacity patterns. sequence.
The real-time edge single-point interpolation method is used to add sampling points on the edge of the signal waveform. The pulse width of the control symbol is calculated in real time to reduce storage resource requirements, and a low-pass filter is used to filter out image spurious signals.
It effectively reduces the jitter of the code waveform, improves the output resolution, reduces storage resource consumption, and reduces the need for low-pass filters.
Smart Images

Figure CN118174724B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital testing technology, and more specifically to a low-jitter code waveform synthesis device based on real-time edge single-point interpolation. Background Art
[0002] In the field of digital testing technology, in order to more accurately test the key indicators such as the electrical performance, timing performance and bit error rate of each unit or component, it is necessary to use high-resolution, low-jitter code synthesis devices. These devices are used to convert code sequences into analog signal waveforms.
[0003] Existing digital waveform synthesis methods are mainly divided into two categories, fixed clock-based methods and variable clock-based methods. The fixed clock-based method is mainly direct digital frequency synthesis (DDFS). DDFS is based on a fixed clock and adjusts the frequency of the output signal by changing the frequency control word of the phase accumulator. It is suitable for synthesizing periodic signal waveforms. The variable clock-based method is further divided into methods using digital-to-analog converters (DAC) and methods without DAC. The variable clock method using DAC is mainly digital waveform synthesis (DDWS). DDWS is based on a variable clock and stores all waveform samples. Then, the clock size is set according to the output rate and all sample data is output point by point. The synthesis method without DAC directly converts the data into the corresponding level output under the control of the clock. For example, the programmable logic array (FPGA) is used to process the data. When the data is "1", the high level is output, and when it is "0", the low level is output. Then, the output voltage is adjusted through the amplifier. Its output is essentially equivalent to a 1-bit DAC. This method has a simple structure and a high output rate.
[0004] There are some limitations in the existing digital waveform synthesis methods. First, when performing digital-to-analog conversion based on the fixed clock method, due to the fixed sampling rate, the sampling rate and the output rate are generally not an integer multiple relationship, which may introduce a time interval error (TIE), resulting in jitter in the code time domain waveform, affecting the stability and accuracy of the signal. Secondly, based on the synthesis method of the variable clock, since the sampling rate is variable, the output analog mirror spurious frequency is not fixed, the requirements for the low-pass filter (LPF) are high, and the cost and difficulty of filtering out the mirror spurious signal are high. Finally, since the waveform of the code is usually not periodic, it is difficult to directly use DDFS to synthesize the code wave. Although the DDWS method can store all waveform sample data and output point by point, it is limited by storage resources and cannot store the waveform sample data corresponding to the entire code sequence. Therefore, it is difficult to process large-capacity code sequences. These limitations indicate that the existing methods need to be improved in some aspects to improve the performance and flexibility of the code synthesis device to meet the needs of different application scenarios. Summary of the invention
[0005] The present invention aims to provide a low-jitter code waveform synthesis device based on real-time edge single-point interpolation. Under the premise of a fixed clock, the device uses a real-time calculation method to add a sampling point on the edge of the signal waveform according to the mapping relationship between the time, amplitude and pulse width of each code element. The sampling point on this edge is used to accurately control the pulse width of each code element to solve the jitter problem caused by the DAC sampling time interval during the code waveform synthesis process when the DAC sampling rate is fixed, thereby overcoming the dilemma of limited output resolution. At the same time, the device generates sample point data by real-time calculation, thereby reducing the use of storage resources.
[0006] A low-jitter code pattern waveform synthesis device based on real-time edge single-point interpolation, comprising:
[0007] Host computer, data storage module, synthesis control module, error calculation module, edge sample calculation module, amplitude conversion module, sample accumulation module, output control module, digital-to-analog converter and low-pass filter (LPF).
[0008] The host computer generates the control command of the entire synthesis device, and sends the code sequence data P[k] set by the user, where k is the code sequence position, k=0, 1, 2, etc., to the data storage module and the synthesis control module according to the communication protocol requirements;
[0009] The synthesis control module receives the output data of the host computer and controls the data storage module, the amplitude conversion module, the error calculation module, the edge calculation module, the sample accumulation module, the output control module, and the digital-to-analog converter module;
[0010] The data storage module receives and stores the code data P[k] sent by the host computer, and outputs the corresponding code data P[k] to the error calculation module and the amplitude calculation module according to the code sequence position k under the action of the synthesis control module;
[0011] The error calculation module calculates the edge integer sample position n according to the relationship between the output sample position n and the code sequence position k. integer_k and error size n frac_k , and output it to the edge sample point calculation module;
[0012] When the edge sample point calculation module is at the edge interpolation sample point position, according to the error size n frac_k The edge interpolation point value V is calculated by the level sample value of the sample point edge_k , the output result is sent to the output control module;
[0013] The amplitude conversion module converts the code data P[k] into a level sample value V according to the level of the code data sequence position k. level_k Output to the output control module;
[0014] The sample point accumulator module performs count enable control and reset control, counts the sample point position n, and outputs the value n to the output control module;
[0015] The output control module outputs the sample point value V corresponding to the sample point position n according to the sampling point position n. n ;
[0016] A digital-to-analog converter performs digital-to-analog conversion on the waveform sample data and sends the converted analog signal to a low-pass filter;
[0017] The low-pass filter is used to perform low-pass filtering on the analog signal output by the digital-to-analog converter, filter out the image spurious signal, and output the code waveform.
[0018] Furthermore, the calculation process of the error calculation module is as follows:
[0019]
[0020]
[0021]
[0022] ΔT k =n frac_k *T s
[0023] Among them, n ideal_k is the ideal edge position, f s is the sampling rate, f is the code rate, α is the sampling rate f sThe ratio of the bit rate f; floor() means rounding down; n frac_k With two integers e k Divided by M, it is used for subsequent edge interpolation sample point value calculation; ΔT k is the error n frac_k The corresponding time size, T s is the sampling time interval of the digital-to-analog converter.
[0024] Furthermore, the calculation process of the edge sample calculation module is as follows:
[0025] n edge_k =n integer_k , when 2e k ≤M
[0026] n edge_k =n integer_k +1, when 2e k >M
[0027]
[0028]
[0029] Among them, V ref is the level judgment reference value corresponding to the sequence, V level_k and V level_k+1 are the level sample values corresponding to the kth code element and the k+1th code element, V ref 、V level_k 、V level_k+1 All are set by the host computer.
[0030] Furthermore, the code data P[k] is converted into a level sample value V level_k When outputting to the output control module, specifically, when the code sequence data P[k] = "1", V level_k is high level; when the code sequence data P[k] = "0", V level_k is low level.
[0031] Furthermore, the output control module outputs the sample value V n When V n The following formula describes it:
[0032]
[0033] In summary, the above technical solution enables the present invention to have the following beneficial effects in the fixed clock synthesis method:
[0034] (1) By adding a sampling point at the edge of the code waveform, the pulse width of each code element can be controlled, thereby effectively reducing the jitter size.
[0035] (2) The resolution of the synthesized code waveform is no longer limited by the sampling time interval of the digital-to-analog converter, which improves the output rate resolution.
[0036] (3) Real-time calculation is used to generate edge sample points and level sample point data, thus avoiding the storage of a large number of waveform sample points and reducing the consumption of storage resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 It is a principle framework diagram of a low-jitter code waveform synthesis device based on real-time edge single-point interpolation provided by an embodiment of the present invention.
[0039] Figure 2 Schematic diagram of edge sample point calculation module calculating interpolation sample point value according to an embodiment of the present invention. Where: (a) is the change of signal from high level to low level, ΔT k >0.5T s Schematic diagram of edge interpolation calculation when (a) is the signal changes from high level to low level, ΔT k ≤0.5T s Schematic diagram of edge interpolation calculation when (c) the signal changes from low level to high level, ΔT k >0.5T s Schematic diagram of edge interpolation calculation when (d) the signal changes from low level to high level, ΔT k ≤0.5T s Schematic diagram of edge interpolation calculation when .
[0040] Figure 3 It is a mapping relationship diagram between output sample point values and code type data of the output control module of an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] In this embodiment, if Figure 1As shown, a low-jitter code pattern waveform synthesis device based on real-time edge single-point interpolation comprises:
[0043] Host computer, data storage module, synthesis control module, error calculation module, edge sample calculation module, amplitude conversion module, sample accumulation module, output control module, digital-to-analog converter and low-pass filter (LPF). Each submodule is described in detail below.
[0044] The host computer generates the control command of the entire synthesis device, and sends the code sequence data P[k] set by the user, k is the code sequence position, k=0,1,2…, to the data storage module according to the communication protocol requirements; according to the code rate f set by the user, the output level amplitude size high level V H and low level V L , combined with the sampling rate f s , calculate the ratio between the sampling rate and the output rate It is represented by the division of two integers N and M. The host computer converts M, N, V H 、V L Send to the synthesis control module.
[0045] The data storage module receives and stores the code data P[k] sent by the host computer, and outputs the corresponding code data P[k] to the error calculation module and the amplitude calculation module according to the sequence position k value under the action of the synthesis control module.
[0046] The error calculation module has the following inputs: sequence position k, pattern data P[k], and the ratio of sampling rate fs to pattern rate f, N / M, where N and M are integers. The module output is the edge integer sample position n integer_k and error size n frac_k , n frac_k With two integers e k Divided by M, the output e of the error calculation module k , M, n integer_k It is further sent to the edge sample point calculation module. The calculation is expressed as follows:
[0047]
[0048]
[0049]
[0050] ΔT k =n frac_k *T s
[0051] Among them, n ideal_k is the ideal edge position, α is the sampling rate f sThe ratio of the bit rate f; floor() means rounding down; n frac_k With two integers e k Divided by M, it is used for subsequent edge interpolation sample point value calculation; ΔT k is the error n frac_k The corresponding time size, T s is the sampling time interval of the digital-to-analog converter.
[0052] Edge sampling point calculation module, whose input is the error size n frac_k =e k / M and edge integer sample position n integer_k , the output is the edge sample position n of the kth sequence edge_k and edge sample value V edge_k The output is further sent to the output control module. The module outputs the parameter n edge_k , edge interpolation sampling point value V edge_k The relationship between the input parameters can be expressed by the following formula:
[0053] n edge_k =n integer_k , when 2e k ≤M
[0054] n edge_k =n integer_k +1, when 2e k >M
[0055]
[0056]
[0057] Among them, V ref is the level judgment reference value corresponding to the sequence, V level_k and V level_k+1 are the level sample values corresponding to the kth code element and the k+1th code element, V ref 、V level_k 、V level_k+1 All are set by the host computer.
[0058] Amplitude conversion module, whose input is sequence position k, code data P[k], level parameter high level V H and low level V L , the output is the level sample value V corresponding to P[k] level_k . Output V level_k Further sent to the output control module. When the code sequence data P[k] = "1", V level_k =V H ; When the code sequence data P[k] = "0", V level_k =VL .
[0059] The sample point accumulator module, whose input is the output control parameter of the synthesis control module, mainly count enable control and reset control. This module counts the sample point position n and outputs the n value to the output control module.
[0060] The input of the output control module is the sample point position n, the edge sample point position n edge_k , edge sample value V edge_k , level sample value V level_k , the output is the sample value V corresponding to the sample position n n When n edge_k-1 <n<n edge_k , then V n =V level_k ; When the code sequence n = n edge_k , V n =V edge_k .
[0061] The synthesis control module receives the error parameters, frequency parameters, level parameters and control signals from the host computer, and controls the data storage module, amplitude conversion module, error calculation module, edge calculation module, sample accumulation module, output control module and digital-to-analog converter module. Its functions include read and write control of the data storage module, parameter setting of the error calculation module, level parameter adjustment of the edge calculation module, counting of the sample accumulation module and enable control of the output control module.
[0062] The digital-to-analog converter performs digital-to-analog conversion on the waveform sample data and sends the converted analog signal to a low-pass filter (LPF).
[0063] The low-pass filter (LPF) is used to perform low-pass filtering on the analog signal output by the digital-to-analog converter, filter out the image spurious signal, and output a code waveform.
[0064] Figure 2 Describes the schematic diagram of edge sample point calculation module calculating interpolation sample point value, Figure 2 (a) Describes the input P[k] of the edge sample calculation module from "1" to "0" (i.e., the level parameter changes from a high level V H To low level V L changes), and the time error ΔT k Greater than the sampling time interval T of the DAC s Half of (i.e. ΔT k ≥0.5T s ) when the edge interpolation sample point calculation diagram, edge sample point value V edge_k The calculation is described by the following formula:
[0065]
[0066] V ref is the level judgment reference value corresponding to the sequence, which is 50%*(V H -V L ), e k and M are two integers, e k Divide by M to represent the error size n frac_k .
[0067] Figure 2 (b) is the signal change from high level to low level, ΔT k ≤0.5T s Schematic diagram of edge interpolation calculation when V edge_k The calculation is described by the following formula:
[0068]
[0069] Figure 2 (c) is the signal change from low level to high level, ΔT k >0.5T s Schematic diagram of edge interpolation calculation when V edge_k The calculation is described by the following formula:
[0070]
[0071] Figure 2 (d) is the signal change from low level to high level, ΔT k ≤0.5T s Schematic diagram of edge interpolation calculation when V edge_k The calculation is described by the following formula:
[0072]
[0073] Figure 3 This is the mapping relationship between the output sample value and the code data of the output control module. When the code sequence data P[k] = "1" and n edge_k-1 <n<n edge_k , then the output of the output control module is V n =V H ; When the code sequence P[k] = "0" and n edge_k-1 <n<n edge_k , then the output of the output control module is V n =V L ; When the code sequence n = n edge_k , then the output of the output control module is V n =V edge_k The level judgment reference value V corresponding to the sequence ref Generally 50%*(V H -VL ). Sample points are inserted through the edge (n edge_k ,V edge_k ) makes the time error △T corresponding to each code element P[k] of the code waveform k The reference value V ref The pulse width T of each code element is controlled by wk All equal to T w , reducing jitter. Where n edge is the edge sampling point position, V edge_k is the edge sample value, T w It is the reciprocal of the code rate f, that is, 1 / f.
[0074] In summary, the host computer sends the code data P[k] to the data storage module according to the user settings, and sends the rate f and sampling rate f s The ratio of the rate f is N / M (N and M are integers), the level parameter V H and V L to the synthesis control module; the data storage module receives and stores the code data P[k] sent by the host computer and the read and write control instructions of the synthesis module, and outputs the code position k and the code data P[k] to the error calculation module and the amplitude conversion module; the error calculation module receives the code position k, the data P[k], the sampling rate f s The ratio parameters N and M of the sum rate f, the output edge integer sample position n integer_k and error size n frac_k To the edge sample calculation module, n frac_k With integer e k Divided by the integer M; the edge sampling calculation module receives the error size n frac_k =e k / M, edge integer sample point position n integer_k , Level parameter V H or V L , output the edge sample position n of the kth sequence edge_k and edge sample value V edge_k To the output control module; the amplitude conversion module inputs the code sequence position k, the code data P[k], and outputs the level sample value V corresponding to P[k] level_k To the output control module, V level_k The value is the level parameter high level V H and low level V L The input of the sample accumulator module is the output control parameter of the synthesis control module, which is mainly the count enable control and reset control, and outputs the value n to the output control module; the input of the output control module is the sample position n, the edge sample position n edge_k , edge sample value V edge_k , level sample value V level_k, output the sample value V corresponding to the sample position n n To the digital-to-analog converter; the input of the digital-to-analog converter is the sample value V corresponding to the sample position n n , output V n The corresponding analog signal is sent to a low-pass filter (LPF); the low-pass filter (LPF) filters out the image spurious signal of the analog signal and outputs a code waveform.
[0075] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A low-jitter code waveform synthesis device based on real-time edge single-point interpolation, characterized in that: It includes a host computer, a data storage module, a synthesis control module, an error calculation module, an edge sample calculation module, an amplitude conversion module, a sample accumulation module, an output control module, a digital-to-analog converter, and a low-pass filter; The host computer generates the control command of the entire synthesis device, and sends the code sequence data P[k] set by the user, where k is the code sequence position, k=0, 1, 2, etc., to the data storage module and the synthesis control module according to the communication protocol requirements; The synthesis control module receives the output data of the host computer and controls the data storage module, the amplitude conversion module, the error calculation module, the edge calculation module, the sample accumulation module, the output control module, and the digital-to-analog converter module; The data storage module receives and stores the code data P[k] sent by the host computer, and outputs the corresponding code data P[k] to the error calculation module and the amplitude calculation module according to the code sequence position k under the action of the synthesis control module; The error calculation module calculates the edge integer sample position n according to the relationship between the output sample position n and the code sequence position k. integer_k and error size n frac_k , and output it to the edge sample calculation module; wherein, the calculation process of the error calculation module is as follows: ΔT k =n frac_k *T s Among them, n ideal_k is the ideal edge position, f s is the sampling rate, f is the code rate, α is the sampling rate f s The ratio of the bit rate f; floor() means rounding down; n frac_k With two integers e k Divided by M, it is used for subsequent edge interpolation sample point value calculation; ΔT k is the error n frac_k The corresponding time size, T s is the sampling time interval of the digital-to-analog converter; When the edge sample point calculation module is at the edge interpolation sample point position, according to the error size n frac_k The edge interpolation point value V is calculated by the level sample value of the sample point edge_k , the output result is sent to the output control module; among them, the calculation process of the edge sample point calculation module is as follows: n edge_k = n integer_k , when 2e k ≤ M n edge_k = n integer_k + 1, when 2e k > M Among them, V edge_k is the edge sample point position of the kth sequence, V ref is the level judgment reference value corresponding to the sequence, V level_k and V level_k+1 are the level sample values corresponding to the kth code element and the k+1th code element, V ref 、V level_k 、V level_k+1 All are set by the host computer; The amplitude conversion module converts the code data P[k] into a level sample value V according to the level of the code data sequence position k. level_k Output to the output control module; The sample point accumulator module performs count enable control and reset control, counts the sample point position n, and outputs the value n to the output control module; The output control module outputs the sample point value V corresponding to the sample point position n according to the sampling point position n. n , V n The following formula describes it: A digital-to-analog converter performs digital-to-analog conversion on the waveform sample data and sends the converted analog signal to a low-pass filter; The low-pass filter is used to perform low-pass filtering on the analog signal output by the digital-to-analog converter, filter out the image spurious signal, and output the code waveform.
2. The low jitter code pattern waveform synthesis device based on real-time edge single-point interpolation according to claim 1, characterized in that: The code data P[k] is converted into a level sample value V level_k When outputting to the output control module, specifically, when the code sequence data P[k] = "1", V level_k is high level; when the code sequence data P[k]="0", V level_k is low level.
