CN-121980283-A - Ideal waveform recovering method, device, terminal and medium
Abstract
The application discloses an ideal waveform recovery method, a device, a terminal and a medium, wherein the method comprises the steps of obtaining a reference cross time point data sequence corresponding to an input serial signal, wherein the reference cross time point data sequence comprises at least two cross points; and traversing the reference cross time point data sequence based on the high-low level voltage value corresponding to the input serial signal and the cross point, determining ideal waveform data corresponding to the target search value, and determining a target ideal waveform data sequence based on the ideal waveform data. The application aims to recover an ideal reference waveform according to a reference cross time point data sequence obtained by actually collecting serial signals, and compare the recovered ideal waveform with the actually collected serial signal waveform, so that the signal degradation degree caused by links and other reasons can be intuitively obtained.
Inventors
- ZHAO TAO
- LIANG GUOCHAO
- ZHOU KEJI
Assignees
- 成都玖锦科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260123
Claims (10)
- 1. A method of ideal waveform recovery, the method comprising: acquiring a reference crossing time point data sequence corresponding to an input serial signal, wherein the reference crossing time point data sequence comprises at least two crossing points; traversing the reference cross time point data sequence based on the high-low level voltage value corresponding to the input serial signal and the cross point, and determining ideal waveform data corresponding to a target search value; A target ideal waveform data sequence is determined based on the ideal waveform data, wherein the target ideal waveform data sequence includes at least two target quantized data sequence points.
- 2. The method of claim 1, wherein the obtaining the sequence of reference cross time point data corresponding to the input serial signal comprises: carrying out quantization processing on the input serial signal to obtain quantized serial signal data; and analyzing and processing the quantized serial signal data to obtain the reference cross time point data sequence.
- 3. The method of claim 1, wherein the traversing the reference cross-time point data sequence based on the high and low level voltage values corresponding to the input serial signal and the cross-point, determining ideal waveform data corresponding to a target lookup value comprises: Traversing the reference cross time point data sequence based on the cross point by the preset data searching method, and determining the level polarity corresponding to the target searching value; and determining ideal waveform data corresponding to the target search value based on the high-low level voltage value and the level polarity.
- 4. The method of claim 3, wherein the target lookup value comprises a first target lookup value and a second target lookup value, the first target lookup value and the second target lookup value each being integers not less than 0, the second target lookup value being greater than the first target lookup value, a difference between the second target lookup value and the first target lookup value being 1; Traversing the reference cross time point data sequence based on the cross point by the preset data searching method, and determining the level polarity corresponding to the target searching value, wherein the level polarity comprises the following steps: Determining a first position of the first target search value in the reference crossing time point data sequence through the preset data search method based on the crossing point; Determining the level polarity corresponding to the first target search value based on the upward rounded integer corresponding to the first position; Determining a second position of the second target search value in the reference cross time point data sequence through the preset data search method based on the downward integer corresponding to the first position; determining the level polarity corresponding to the second target search value based on the upward rounded integer corresponding to the second position; Repeating the steps to traverse the reference cross time point data sequence and determine the level polarity corresponding to the target search value.
- 5. The method of claim 4, wherein the first target-lookup value is 0; The determining the level polarity corresponding to the first target search value based on the integer rounded up corresponding to the first position includes: If the first edge of the input serial signal is a falling edge, obtaining a level polarity corresponding to the first target search value through a first preset calculation formula based on an upward rounded integer corresponding to a first position; If the first edge of the input serial signal is a rising edge, the level polarity corresponding to the first target search value is obtained through a second preset calculation formula based on the upward rounded integer corresponding to the first position.
- 6. The method of claim 3, wherein the high-low level voltage values comprise a high level voltage value corresponding to an input serial signal and a low level voltage value corresponding to an input serial signal; the determining, based on the high-low level voltage value and the level polarity, ideal waveform data corresponding to the target search value includes: If the level polarity is a low level, determining the high level voltage value as the ideal waveform data; if the level polarity is high, the low level voltage value is determined as the ideal waveform data.
- 7. The method of claim 5, wherein the first predetermined calculation formula is represented by the following calculation formula: The second preset calculation formula is represented by the following calculation formula: Wherein, the Indicating the polarity of the level corresponding to the first position, An integer representing the corresponding upward rounding of the first position, Representation pair An integer obtained by performing a downward rounding operation on the result of (a).
- 8. An ideal waveform recovery apparatus, the apparatus comprising: A first unit, configured to obtain a reference cross time point data sequence corresponding to an input serial signal, where the reference cross time point data sequence includes at least two cross points; The second unit is used for traversing the reference cross time point data sequence based on the high-low level voltage value corresponding to the input serial signal and the cross point, and determining ideal waveform data corresponding to the target search value; And a third unit for determining a target ideal waveform data sequence based on the ideal waveform data, wherein the target ideal waveform data sequence comprises at least two target quantized data sequence points.
- 9. A terminal comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading instructions from the memory to perform the steps of the method according to any one of claims 1 to 7.
- 10. A medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the method of any one of claims 1 to 7.
Description
Ideal waveform recovering method, device, terminal and medium Technical Field The present application relates to the field of data processing technologies, and in particular, to an ideal waveform recovery method, apparatus, terminal, and medium. Background In serial bus communication, signal analysis includes protocol analysis, eye diagram generation, jitter analysis, digital filtering, etc., and is usually performed after acquisition and quantization by a digital oscilloscope, and medium-high-end oscilloscopes generally have these functions. However, due to the cable, the transmission path, the signal generating device and the oscilloscope, the signal displayed on the oscilloscope after the actual acquisition and quantization is usually a non-ideal serial signal, so that phenomena such as jitter, amplitude distortion, slow rising of edges, overshoot and the like can occur, and it is difficult to intuitively evaluate the signal waveform quality, for example, the degree of signal degradation, and meanwhile, it is difficult to judge that the signal bit judgment is abnormal, for example, the amplitude of a certain bit is lower than the normal level, and misjudgment can occur, so that analysis errors and the like can be caused. Disclosure of Invention The application mainly aims to provide an ideal waveform recovery method, an ideal waveform recovery device, a terminal and a medium, which aim to recover an ideal reference waveform according to a reference cross time point data sequence obtained by actually collecting serial signals, and compare the recovered ideal waveform with the actually collected serial signal waveform, so that the signal degradation degree caused by links and the like can be intuitively obtained. To achieve the above object, the present application provides an ideal waveform recovery method, the method comprising: acquiring a reference crossing time point data sequence corresponding to an input serial signal, wherein the reference crossing time point data sequence comprises at least two crossing points; traversing the reference cross time point data sequence based on the high-low level voltage value corresponding to the input serial signal and the cross point, and determining ideal waveform data corresponding to a target search value; A target ideal waveform data sequence is determined based on the ideal waveform data, wherein the target ideal waveform data sequence includes at least two target quantized data sequence points. Specifically, the acquiring the reference cross time point data sequence corresponding to the input serial signal includes: carrying out quantization processing on the input serial signal to obtain quantized serial signal data; and analyzing and processing the quantized serial signal data to obtain the reference cross time point data sequence. Specifically, the determining ideal waveform data corresponding to the target search value based on the high-low level voltage value corresponding to the input serial signal and the intersection point, traversing the reference intersection time point data sequence, includes: Traversing the reference cross time point data sequence based on the cross point by the preset data searching method, and determining the level polarity corresponding to the target searching value; and determining ideal waveform data corresponding to the target search value based on the high-low level voltage value and the level polarity. Specifically, the target lookup value includes a first target lookup value and a second target lookup value, the first target lookup value and the second target lookup value are integers not less than 0, the second target lookup value is greater than the first target lookup value, and a difference between the second target lookup value and the first target lookup value is 1; Traversing the reference cross time point data sequence based on the cross point by the preset data searching method, and determining the level polarity corresponding to the target searching value, wherein the level polarity comprises the following steps: Determining a first position of the first target search value in the reference crossing time point data sequence through the preset data search method based on the crossing point; Determining the level polarity corresponding to the first target search value based on the upward rounded integer corresponding to the first position; Determining a second position of the second target search value in the reference cross time point data sequence through the preset data search method based on the downward integer corresponding to the first position; determining the level polarity corresponding to the second target search value based on the upward rounded integer corresponding to the second position; Repeating the steps to traverse the reference cross time point data sequence and determine the level polarity corresponding to the target search value. Specifically, the first target lookup value is 0; The determin