Ideal waveform recovery method and device, terminal and medium

By acquiring and processing the crossover time point data of serial signals, the ideal waveform is recovered and compared with the actual signal, thus solving the problem of non-ideal signal evaluation and improving the accuracy and reliability of signal analysis.

CN121980283APending Publication Date: 2026-05-05成都玖锦科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
成都玖锦科技有限公司
Filing Date
2026-01-23
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

In serial bus communication, the actual acquired signals are usually non-ideal signals, exhibiting phenomena such as jitter, amplitude distortion, slow edge rise, and overshoot, making it difficult to intuitively assess the signal waveform quality and determine bit positions, leading to analysis errors.

Method used

By acquiring the reference crossover time point data sequence of the input serial signal, and based on the high and low level voltage values ​​and crossover points, the ideal waveform data is determined by traversing the data sequence, the ideal waveform is restored and compared with the actual acquired signal to intuitively assess the degree of signal degradation.

Benefits of technology

It enables an intuitive assessment of the degree of signal degradation, improving the accuracy and reliability of signal analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121980283A_ABST
    Figure CN121980283A_ABST
Patent Text Reader

Abstract

The invention discloses an ideal waveform recovery method and device, a terminal and a medium, and the method comprises the steps: obtaining a reference cross time point data sequence corresponding to an input serial signal, and enabling the reference cross time point data sequence to comprise at least two cross points; based on high and low level voltage values corresponding to input serial signals and the cross points, traversing the reference cross time point data sequence, and determining ideal waveform data corresponding to a target search value; and determining a target ideal waveform data sequence based on the ideal waveform data. According to the method, the ideal reference waveform is recovered according to the reference cross time point data sequence obtained by actually collecting the serial signals, the recovered ideal waveform is compared with the actually collected serial signal waveform, and the signal deterioration degree caused by links and the like can be visually obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to an ideal waveform recovery method, apparatus, terminal and medium. Background Technology

[0002] In serial bus communication, signal analysis includes protocol analysis, eye diagram generation, jitter analysis, digital filtering, etc. It is usually performed by acquiring and quantizing data with a digital oscilloscope. Mid- to high-end oscilloscopes typically have these functions.

[0003] However, due to factors such as cables, transmission paths, signal generation devices, and oscilloscopes, the signals actually acquired and quantized and displayed on the oscilloscope are usually non-ideal serial signals. These signals may exhibit jitter, amplitude distortion, slow edge rise, overshoot, and other phenomena, making it difficult to intuitively assess the signal waveform quality, such as the degree of signal degradation. At the same time, it is also difficult to detect abnormalities in signal bit determination. For example, if the amplitude of a certain bit is lower than the normal level, misjudgment may occur, leading to analysis errors. Summary of the Invention

[0004] The main purpose of this application is to provide an ideal waveform recovery method, device, terminal and medium, which aims to recover the ideal reference waveform based on the reference cross-time point data sequence obtained from the actual acquisition of serial signals. By comparing the recovered ideal waveform with the actual acquired serial signal waveform, the degree of signal degradation caused by link and other reasons can be intuitively obtained.

[0005] To achieve the above objectives, this application provides an ideal waveform recovery method, the method comprising: Obtain the reference cross-time point data sequence corresponding to the input serial signal, wherein the reference cross-time point data sequence includes at least two cross points; Based on the high and low voltage values ​​corresponding to the input serial signal and the crossover point, the reference crossover time point data sequence is traversed to determine the ideal waveform data corresponding to the target lookup value. Based on the ideal waveform data, a target ideal waveform data sequence is determined, wherein the target ideal waveform data sequence includes at least two target quantized data sequence points.

[0006] Specifically, acquiring the reference cross-time point data sequence corresponding to the input serial signal includes: The input serial signal is quantized to obtain quantized serial signal data; The quantized serial signal data is analyzed and processed to obtain the reference cross-time point data sequence.

[0007] Specifically, the step of determining the ideal waveform data corresponding to the target lookup value by traversing the reference crossover time point data sequence based on the high and low level voltage values ​​corresponding to the input serial signal and the crossover point includes: Based on the intersection point, the preset data search method is used to traverse the reference intersection time point data sequence to determine the level polarity corresponding to the target search value. Based on the high and low voltage levels and the voltage polarity, the ideal waveform data corresponding to the target lookup value is determined.

[0008] Specifically, the target lookup value includes a first target lookup value and a second target lookup value, both of which are integers not less than 0, the second target lookup value is greater than the first target lookup value, and the difference between the second target lookup value and the first target lookup value is 1; Based on the intersection point, the step of determining the voltage polarity corresponding to the target lookup value by traversing the reference intersection time point data sequence using the preset data lookup method includes: Based on the intersection point, the first position of the first target search value in the reference intersection time point data sequence is determined by the preset data search method. Based on the integer corresponding to the first position, the level polarity corresponding to the first target lookup value is determined; Based on the integer corresponding to the first position, which is rounded down, the second position of the second target lookup value in the reference cross-time point data sequence is determined by the preset data lookup method. Based on the integer corresponding to the second position, which is rounded up, determine the voltage polarity of the second target lookup value; Repeat the above steps to traverse the reference cross-time point data sequence and determine the level polarity corresponding to the target lookup value.

[0009] Specifically, the first target lookup value is 0; Determining the voltage polarity of the first target lookup value based on the rounded-up integer corresponding to the first position includes: If the first edge of the input serial signal is a falling edge, then based on the integer rounded up corresponding to the first position, the level polarity corresponding to the first target lookup value is obtained through the first preset calculation formula. If the first edge of the input serial signal is a rising edge, then based on the integer rounded up corresponding to the first position, the level polarity corresponding to the first target lookup value is obtained through the second preset calculation formula.

[0010] Specifically, the high and low level voltage values ​​include the high level voltage value corresponding to the input serial signal and the low level voltage value corresponding to the input serial signal; The step of determining the ideal waveform data corresponding to the target lookup value based on the high and low voltage values ​​and the voltage polarity includes: If the voltage level polarity is low, then the high-level voltage value is determined as the ideal waveform data; If the voltage level polarity is high, then the low voltage level value is determined as the ideal waveform data.

[0011] Specifically, the first preset calculation formula is expressed by the following calculation formula:

[0012] The second preset calculation formula is expressed by the following calculation formula:

[0013] in, Indicates the voltage polarity corresponding to the first position. This represents the integer corresponding to the first position, rounded up. Indicates to The integer obtained by rounding down the result.

[0014] To achieve the above objectives, this application also provides an ideal waveform recovery device, the device comprising: The first unit is used to acquire a reference crossover time point data sequence corresponding to the input serial signal, wherein the reference crossover time point data sequence includes at least two crossover points; The second unit is used to determine the ideal waveform data corresponding to the target lookup value by traversing the reference crossover time point data sequence based on the high and low level voltage values ​​corresponding to the input serial signal and the crossover point. The third unit is used to determine a target ideal waveform data sequence based on the ideal waveform data, wherein the target ideal waveform data sequence includes at least two target quantized data sequence points.

[0015] To achieve the above objectives, this application also provides a terminal, including a processor and a memory, the memory storing multiple instructions; the processor loads instructions from the memory to execute the steps in any of the methods provided in this application.

[0016] To achieve the above objectives, this application also provides a medium storing a plurality of instructions adapted for loading by a processor to execute the steps in any of the methods provided in this application.

[0017] This application provides an ideal waveform recovery method, apparatus, terminal, and medium. It first acquires a reference crossover time point data sequence corresponding to an input serial signal, wherein the reference crossover time point data sequence includes at least two crossover points. Based on the high and low level voltage values ​​corresponding to the input serial signal and the crossover points, the reference crossover time point data sequence is traversed to determine the ideal waveform data corresponding to the target lookup value. Based on the ideal waveform data, a target ideal waveform data sequence is determined, thereby recovering the target ideal waveform. By comparing the recovered target ideal waveform with the actually acquired serial signal waveform, the degree of signal degradation caused by factors such as the link can be intuitively obtained. Attached Figure Description

[0018] Figure 1 A flowchart illustrating the method provided in the embodiments of this application; Figure 2 A schematic diagram of test scenario 1 provided in an embodiment of this application; Figure 3 A schematic diagram of test scenario 2 provided in the embodiments of this application; Figure 4 This is a schematic diagram of test scenario 3 provided in an embodiment of this application; Figure 5 This is a schematic diagram of the device provided in the embodiments of this application; Figure 6 This is a schematic diagram of the terminal structure provided in an embodiment of this application. Detailed Implementation

[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0020] Because the signals actually acquired and quantized are usually non-ideal serial signals displayed on the oscilloscope, they may exhibit jitter, amplitude distortion, slow edge rise, overshoot, and other phenomena, making it difficult to intuitively assess the signal waveform quality, such as the degree of signal degradation. At the same time, it is also difficult to judge abnormalities in signal bit determination. For example, if the amplitude of a certain bit is lower than the normal level, it may lead to misjudgment and cause analysis errors.

[0021] Therefore, the embodiments of this application provide an ideal waveform recovery method, apparatus, terminal and medium to solve practical technical problems.

[0022] In some embodiments, the device may be integrated into an electronic device, such as a terminal or server.

[0023] In some embodiments, the server may also be implemented as a terminal.

[0024] The server can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0025] The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal and the server can be connected directly or indirectly through wired or wireless communication, which is not limited herein.

[0026] The following sections provide detailed descriptions of each example. It should be noted that the sequence numbers of the following embodiments are not intended to limit the preferred order of the embodiments.

[0027] like Figure 1 The specific process of the method can be as follows: S110. Obtain the reference cross-time point data sequence corresponding to the input serial signal, wherein the reference cross-time point data sequence includes at least two cross points.

[0028] In some embodiments, obtaining the reference cross-time point data sequence corresponding to the input serial signal includes the steps S111 to S112 as shown below: S111. The input serial signal is quantized to obtain quantized serial signal data.

[0029] In some embodiments, the input serial signal can be processed by data acquisition and separation. A digital oscilloscope or data acquisition card can be used to perform analog-to-digital conversion on the analog input serial signal, quantizing it into processable data, thus obtaining the quantized serial signal data.

[0030] S112. Analyze and process the quantized serial signal data to obtain the reference cross-time point data sequence.

[0031] In some embodiments, the quantized serial signal data is analyzed to obtain information about the reference level crossover position in the serial signal waveform (or information about the reference level crossover position obtained by clock recovery can be used), i.e., the reference crossover time point data sequence. The reference crossover time point data sequence is denoted as... , This represents the number of intersections.

[0032] S120. Based on the high and low level voltage values ​​corresponding to the input serial signal and the crossover point, traverse the reference crossover time point data sequence to determine the ideal waveform data corresponding to the target lookup value.

[0033] In some embodiments, the step of determining the ideal waveform data corresponding to the target lookup value by traversing the reference crossover time point data sequence based on the high and low level voltage values ​​corresponding to the input serial signal and the crossover point includes the following steps S121 to S122: S121. Based on the intersection point, the reference intersection time point data sequence is traversed using the preset data search method to determine the level polarity corresponding to the target search value.

[0034] In some embodiments, the preset data lookup method is illustrated through the following specific implementation process: Search In ascending data sequence The specific method for positioning is as follows: The value starts from the index position and continues until a pair of consecutive elements is found. , , so that:

[0035] by Starting point Linear insertion with endpoint ,but Insertion position number For data In sequence The location within. (Needs explanation) It can be decimal data. For example: It is an array of four elements [2.3, 5.2, 7.8, 7.9, 10], starting at index 0. ,but Since 6.5 is half the sum of 5.2 (index 1) and 7.8 (index 2), the output is 1.5. For the same number, such as... ,but .

[0036] In some embodiments, the target lookup value includes a first target lookup value and a second target lookup value, both of which are integers not less than 0, the second target lookup value is greater than the first target lookup value, and the difference between the second target lookup value and the first target lookup value is 1.

[0037] Specifically, the step of determining the level polarity corresponding to the target lookup value by traversing the reference crossover time point data sequence based on the crossover point using the preset data lookup method includes the following steps S1211 to S1215: S1211. Based on the intersection point, determine the first position of the first target search value in the reference intersection time point data sequence using the preset data search method.

[0038] In some embodiments, with Starting from the index point, search according to the preset data search method. That is, the first target lookup value is in The position in the data sequence, i.e., the first position, can be used To express.

[0039] S1212. Determine the voltage polarity of the first target lookup value based on the integer obtained by rounding up the first position.

[0040] In some embodiments, the first target lookup value is 0, that is... .

[0041] Specifically, let for The integer rounded up. for The integer rounded down is then Let be the level polarity of the first point of the ideal signal, that is, the level polarity corresponding to the first target search value, where =0 indicates a low level. =1 indicates a high level.

[0042] Specifically, determining the voltage polarity of the first target lookup value based on the rounded-up integer corresponding to the first position includes the following specific implementation process: If the first edge of the input serial signal is a falling edge, then based on the integer rounded up corresponding to the first position, the level polarity corresponding to the first target lookup value is obtained through the first preset calculation formula. If the first edge of the input serial signal is a rising edge, then based on the integer rounded up corresponding to the first position, the level polarity corresponding to the first target lookup value is obtained through the second preset calculation formula.

[0043] Specifically, the first preset calculation formula is expressed by the following calculation formula:

[0044] The second preset calculation formula is expressed by the following calculation formula:

[0045] in, Indicates the voltage polarity corresponding to the first position. This represents the integer corresponding to the first position, rounded up. Indicates to The integer obtained by rounding down the result.

[0046] S1213. Based on the integer corresponding to the first position, the second position of the second target search value in the reference cross-time point data sequence is determined by the preset data search method.

[0047] In some embodiments, to reduce data processing speed, Starting from the index point, search according to the preset data search method. That is, the second target search value is in The position in the data sequence, i.e., the second position, can be used... To express.

[0048] S1214. Determine the voltage polarity of the second target lookup value based on the integer obtained by rounding up the second position.

[0049] In some embodiments, the content is the same as that of step S1212, and will not be repeated here.

[0050] S1215. Repeat the above steps to traverse the reference cross-time point data sequence and determine the level polarity corresponding to the target lookup value.

[0051] S122. Based on the high and low level voltage values ​​and the level polarity, determine the ideal waveform data corresponding to the target lookup value.

[0052] In some embodiments, the high and low level voltage values ​​include the high level voltage value corresponding to the input serial signal and the low level voltage value corresponding to the input serial signal.

[0053] Specifically, determining the ideal waveform data corresponding to the target lookup value based on the high and low level voltage values ​​and the level polarity includes the following specific implementation process: If the voltage level polarity is low, then the high-level voltage value is determined as the ideal waveform data; If the voltage level polarity is high, then the low voltage level value is determined as the ideal waveform data.

[0054] Specifically, the following example illustrates how to determine the ideal waveform data corresponding to the first target lookup value: calculate Ideal waveform data at time, i.e. It can be obtained from the following expression:

[0055] in, The low-level voltage value of the actual serial signal. This refers to the high-level voltage value of the actual serial signal.

[0056] S130. Based on the ideal waveform data, determine the target ideal waveform data sequence, wherein the target ideal waveform data sequence includes at least two target quantized data sequence points.

[0057] In some embodiments, the ideal waveform data sequence after recovering the remaining data points is restored. , The number of data sequence points is quantified for the target.

[0058] In some embodiments, the technical effects of the embodiments of this application are described in detail in conjunction with the following actual engineering tests: (1) Test case 1: The input signal is an alternating NRZ code with a high level of 5V, a low level of -3V, a frequency of 522Hz. Sampling information: Oscilloscope sampling rate 25000S / s, sampling time 20us.

[0059] The ideal signal waveform was recovered using the embodiments of this application and then compared with the acquired original waveform. The results are shown in the figure. Figure 2 As shown. In Figure 2 In the diagram, the dashed line represents the original waveform. After signal transmission and sampling, the signal distortion is quite obvious. By comparing it with the ideal waveform recovered through the embodiments of this application, the degree of signal distortion can be clearly seen, providing analytical ideas for testers or R&D personnel.

[0060] (2) Test Scenario 2: The input signal is: NRZ code with a high level of 5V and a low level of -3V, and a custom bit stream. Random jitter with a mean of 0s and a standard deviation of 1us and fixed jitter with an IIR filter type are added to the signal. Sampling information: Oscilloscope sampling rate 25000S / s, sampling time 20us.

[0061] The ideal signal waveform was recovered using the embodiments of this application and then compared with the acquired original waveform. The results are shown in the figure. Figure 3 As shown, in Figure 3 In the process, the ideal waveform can be completely recovered. By comparison, the amplitude error, ringing phenomenon, and edge rising and falling conditions of the original signal can be intuitively obtained.

[0062] (3) Test situation 3: By comparing the analysis results of the clock waveform crossover time series of the input signal in test case 2 using the embodiments of this application, we can obtain... Figure 4 This allows us to intuitively obtain the number of symbols occupied by each bit.

[0063] In summary, this application provides an ideal waveform recovery method. Based on the reference cross-time point data sequence obtained from the actual acquisition of serial signals, an ideal reference waveform is recovered. By comparing the recovered ideal waveform with the actual acquired serial signal waveform, the degree of signal degradation caused by factors such as the link can be intuitively obtained.

[0064] To better implement the above methods, this application also provides an ideal waveform recovery device, which can be integrated into an electronic device, such as a terminal or server. The terminal can be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, or personal computer; the server can be a single server or a server cluster composed of multiple servers.

[0065] For example, in this embodiment, the method of this application embodiment will be described in detail by taking the ideal waveform restoration device specifically integrated into the terminal as an example.

[0066] For example, such as Figure 5 As shown, the ideal waveform recovery device 500 may include a first unit 501, a second unit 502 and a third unit 503; The ideal waveform recovery device 500 includes: The first unit 501 is used to acquire a reference cross-time point data sequence corresponding to the input serial signal, wherein the reference cross-time point data sequence includes at least two cross points; The second unit 502 is used to determine the ideal waveform data corresponding to the target lookup value by traversing the reference crossover time point data sequence based on the high and low level voltage values ​​corresponding to the input serial signal and the crossover point. The third unit 503 is used to determine a target ideal waveform data sequence based on the ideal waveform data, wherein the target ideal waveform data sequence includes at least two target quantized data sequence points.

[0067] In practice, each of the above units can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units, please refer to the previous method embodiments, which will not be repeated here.

[0068] As can be seen from the above, the embodiments of this application can recover the target ideal waveform. By comparing the recovered target ideal waveform with the actual acquired serial signal waveform, the degree of signal degradation caused by factors such as the link can be intuitively obtained.

[0069] This application also provides an electronic device, which can be a terminal, a server, or other similar device. The terminal can be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, personal computer, etc.; the server can be a single server or a server cluster composed of multiple servers, etc.

[0070] In some embodiments, the product processing device may also be integrated into multiple electronic devices, such as multiple servers, with the multiple servers implementing the ideal waveform recovery method of this application.

[0071] In this embodiment, the electronic device will be described in detail as a terminal, for example, such as... Figure 6 As shown, it illustrates a structural schematic diagram of the terminal 600 involved in an embodiment of this application. Specifically: The terminal 600 may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more media, a power supply 603, an input module 604, and a communication module 605. Those skilled in the art will understand that... Figure 6 The terminal 600 structure shown does not constitute a limitation on the terminal 600, and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 601 is the control center of the terminal 600. It connects various parts of the terminal 600 via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 602, and by calling data stored in the memory 602, thereby providing overall monitoring of the terminal 600. In some embodiments, the processor 601 may include one or more processing cores; in some embodiments, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into the processor 601.

[0072] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 mainly includes a program storage area and a data storage area. The program storage area can store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area can store data created according to the use of the terminal 600, etc. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0073] The terminal 600 also includes a power supply 603 that supplies power to the various components. In some embodiments, the power supply 603 can be logically connected to the processor 601 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 603 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0074] The terminal 600 may also include an input module 604, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0075] The terminal 600 may also include a communication module 605. In some embodiments, the communication module 605 may include a wireless module. The terminal 600 can perform short-range wireless transmission through the wireless module of the communication module 605, thereby providing users with wireless broadband Internet access. For example, the communication module 605 can be used to help users send and receive emails, browse web pages, and access streaming media.

[0076] Although not shown, terminal 600 may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, processor 601 in terminal 600 loads the executable files corresponding to the processes of one or more applications into memory 602 according to the following instructions, and processor 601 runs the applications stored in memory 602 to realize various functions, as follows: Obtain the reference cross-time point data sequence corresponding to the input serial signal, wherein the reference cross-time point data sequence includes at least two cross points; Based on the high and low voltage values ​​corresponding to the input serial signal and the crossover point, the reference crossover time point data sequence is traversed to determine the ideal waveform data corresponding to the target lookup value. Based on the ideal waveform data, a target ideal waveform data sequence is determined, wherein the target ideal waveform data sequence includes at least two target quantized data sequence points.

[0077] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0078] As can be seen from the above, the embodiments of this application can recover the ideal reference waveform based on the reference cross-time point data sequence obtained from the actual acquisition of serial signals. By comparing the recovered ideal waveform with the actual acquired serial signal waveform, the degree of signal degradation caused by factors such as the link can be intuitively obtained.

[0079] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be accomplished by instructions, or by instructions controlling related hardware. These instructions can be stored in a medium and loaded and executed by a processor.

[0080] Therefore, embodiments of this application provide a medium storing multiple instructions that can be loaded by a processor to execute steps in any of the ideal waveform recovery methods provided in embodiments of this application. For example, the instructions can execute the following steps: Obtain the reference cross-time point data sequence corresponding to the input serial signal, wherein the reference cross-time point data sequence includes at least two cross points; Based on the high and low voltage values ​​corresponding to the input serial signal and the crossover point, the reference crossover time point data sequence is traversed to determine the ideal waveform data corresponding to the target lookup value. Based on the ideal waveform data, a target ideal waveform data sequence is determined, wherein the target ideal waveform data sequence includes at least two target quantized data sequence points.

[0081] The medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0082] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a medium. A processor of a computer device reads the computer instructions from the medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations of the above embodiments.

[0083] Since the instructions stored in the medium can execute the steps of any ideal waveform recovery method provided in the embodiments of this application, the beneficial effects that any ideal waveform recovery method provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0084] The above provides a detailed description of an ideal waveform recovery method, apparatus, terminal, and medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. An ideal waveform recovery method, characterized in that, The method includes: Obtain the reference cross-time point data sequence corresponding to the input serial signal, wherein the reference cross-time point data sequence includes at least two cross points; Based on the high and low voltage values ​​corresponding to the input serial signal and the crossover point, the reference crossover time point data sequence is traversed to determine the ideal waveform data corresponding to the target lookup value. Based on the ideal waveform data, a target ideal waveform data sequence is determined, wherein the target ideal waveform data sequence includes at least two target quantized data sequence points.

2. The method as described in claim 1, characterized in that, The step of acquiring the reference cross-time point data sequence corresponding to the input serial signal includes: The input serial signal is quantized to obtain quantized serial signal data; The quantized serial signal data is analyzed and processed to obtain the reference cross-time point data sequence.

3. The method as described in claim 1, characterized in that, The process of determining the ideal waveform data corresponding to the target lookup value by traversing the reference crossover time point data sequence based on the high and low level voltage values ​​corresponding to the input serial signal and the crossover point includes: Based on the intersection point, the preset data search method is used to traverse the reference intersection time point data sequence to determine the level polarity corresponding to the target search value. Based on the high and low voltage levels and the voltage polarity, the ideal waveform data corresponding to the target lookup value is determined.

4. The method as described in claim 3, characterized in that, The target lookup value includes a first target lookup value and a second target lookup value. Both 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 the difference between the second target lookup value and the first target lookup value is 1. Based on the intersection point, the step of determining the voltage polarity corresponding to the target lookup value by traversing the reference intersection time point data sequence using the preset data lookup method includes: Based on the intersection point, the first position of the first target search value in the reference intersection time point data sequence is determined by the preset data search method. Based on the integer corresponding to the first position, the level polarity corresponding to the first target lookup value is determined; Based on rounding down to the nearest integer corresponding to the first position, the second position of the second target search value in the reference cross-time point data sequence is determined by the preset data search method; Based on the integer corresponding to the second position, which is rounded up, determine the voltage polarity of the second target lookup value; Repeat the above steps to traverse the reference cross-time point data sequence and determine the level polarity corresponding to the target lookup value.

5. The method as described in claim 4, characterized in that, The first target lookup value is 0; Determining the voltage polarity of the first target lookup value based on the rounded-up integer corresponding to the first position includes: If the first edge of the input serial signal is a falling edge, then based on the integer rounded up corresponding to the first position, the level polarity corresponding to the first target lookup value is obtained through the first preset calculation formula. If the first edge of the input serial signal is a rising edge, then based on the integer rounded up corresponding to the first position, the level polarity corresponding to the first target lookup value is obtained through the second preset calculation formula.

6. The method as described in claim 3, characterized in that, The high and low level voltage values ​​include the high level voltage value corresponding to the input serial signal and the low level voltage value corresponding to the input serial signal. The step of determining the ideal waveform data corresponding to the target lookup value based on the high and low voltage values ​​and the voltage polarity includes: If the voltage level polarity is low, then the high-level voltage value is determined as the ideal waveform data; If the voltage level polarity is high, then the low voltage level value is determined as the ideal waveform data.

7. The method as described in claim 5, characterized in that, The first preset calculation formula is expressed by the following calculation formula: The second preset calculation formula is expressed by the following calculation formula: in, Indicates the voltage polarity corresponding to the first position. This represents the integer corresponding to the first position, rounded up. Indicates to The integer obtained by rounding down the result.

8. An ideal waveform recovery device, characterized in that, The device includes: The first unit is used to acquire a reference crossover time point data sequence corresponding to the input serial signal, wherein the reference crossover time point data sequence includes at least two crossover points; The second unit is used to determine the ideal waveform data corresponding to the target lookup value by traversing the reference crossover time point data sequence based on the high and low level voltage values ​​corresponding to the input serial signal and the crossover point. The third unit is used to determine a target ideal waveform data sequence based on the ideal waveform data, wherein the target ideal waveform data sequence includes at least two target quantized data sequence points.

9. A terminal, characterized in that, The method includes a processor and a memory, the memory storing multiple instructions; the processor loads instructions from the memory to perform the steps of the method as described in any one of claims 1 to 7.

10. A medium, characterized in that, The medium stores a plurality of instructions adapted for loading by a processor to execute the steps of the method according to any one of claims 1 to 7.