Time interval error determination method and device, electronic equipment and storage medium

By determining the starting actual data edge and dividing it to form the data flow to be compared for comparison analysis, the problem of low reliability in time interval error determination is solved, and higher error determination accuracy is achieved.

CN119127746AActive Publication Date: 2024-12-13成都玖锦科技有限公司
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202411125744.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-12-13
Estimated Expiration
2044-08-16

AI Technical Summary

Technical Problem

In the prior art, the reliability of time interval error determination is relatively low, resulting in inaccurate error determination in signal processing.

Method used

By acquiring the original actual data stream and the reference data stream, the starting actual data edge is determined, and the data stream to be compared is divided based on the starting data edge, and a comparison analysis is performed to determine the time interval error. The specific steps include traversing the data edge, calculating the position deviation, matching the reference data edge, and performing data edge types to improve the reliability of error determination.

Benefits of technology

The reliability of time interval error determination is improved, the accuracy of the results of the comparison analysis is ensured, and the shortcomings in error determination in the prior art are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127746A_ABST
    Figure CN119127746A_ABST
Patent Text Reader

Abstract

The invention provides a time interval error determination method and device, electronic equipment and a storage medium, and relates to the technical field of signal processing. In the application, firstly, an original actual data stream and a reference data stream are acquired; secondly, determining an initial actual data edge in the original actual data stream; then, based on the initial actual data edge, segmenting a plurality of actual data edges included in the original actual data stream to form to-be-compared actual data streams; and finally, performing comparative analysis on the actual data edge in the actual data stream to be compared and the reference data edge in the reference data stream, determining a position deviation between the time position of the actual data edge and the time position of the reference data edge, and taking the position deviation as a time interval error. Based on the above content, the problem of relatively low reliability of time interval error determination in the prior art can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of signal processing technology, and in particular to a method and device for determining a time interval error, an electronic device, and a storage medium. Background Art

[0002] Time interval error (TIE) refers to the time deviation of the event edge time point of the actual signal relative to the event edge time point of the ideal signal. Among them, the ideal signal is usually a reference signal obtained by the signal processing software using the average estimation of the actual signal period. In addition, the determination of time interval error is applied in many signal processing scenarios. However, in the prior art, there is generally a problem that the reliability of time interval error determination is relatively low. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a method and device for determining a time interval error, an electronic device and a storage medium, so as to improve the problem of relatively low reliability of time interval error determination existing in the prior art.

[0004] To achieve the above objectives, this application adopts the following technical solutions:

[0005] A method for determining a time interval error, comprising:

[0006] Acquire an original actual data stream and a reference data stream, wherein the original actual data stream includes a plurality of actual data edges, and the reference data stream includes a plurality of reference data edges;

[0007] The actual data edges in the original actual data stream are traversed in sequence, and, for the actual data edge currently traversed, a first position deviation between the time position of the actual data edge currently traversed and the time position of the first reference data edge in the reference data stream is calculated, and a second position deviation between the time position of the next actual data edge of the actual data edge currently traversed and the time position of the first reference data edge in the reference data stream is calculated;

[0008] When the second position deviation is greater than the first position deviation, the actual data edge currently traversed is used as the starting actual data edge, and the traversal of the actual data edge in the original actual data stream is stopped; or, when the second position deviation is not greater than the first position deviation, the next actual data edge of the actual data edge currently traversed is used as the new actual data edge currently traversed, until the starting actual data edge is determined;

[0009] Based on the determined starting actual data edge, multiple actual data edges included in the original actual data stream are segmented to form an actual data stream to be compared, wherein the starting actual data edge serves as the first actual data edge in the actual data stream to be compared;

[0010] The actual data edge in the actual data stream to be compared and the reference data edge in the reference data stream are compared and analyzed to determine the position deviation between the time position of the actual data edge and the time position of the reference data edge as the corresponding time interval error.

[0011] In a preferred embodiment of the present application, in the above-mentioned method for determining the time interval error, the step of comparing and analyzing the actual data edge in the actual data stream to be compared with the reference data edge in the reference data stream to determine the position deviation between the time position of the actual data edge and the time position of the reference data edge as the corresponding time interval error includes:

[0012] For each actual data edge in the actual data stream to be compared, determining in the reference data stream a reference data edge that matches the actual data edge;

[0013] For each actual data edge in the actual data stream to be compared, a position deviation between a time position of the actual data edge and a time position of a reference data edge that matches the actual data edge is determined, and the position deviation is used as a corresponding time interval error.

[0014] In a preferred embodiment of the present application, in the above-mentioned method for determining the time interval error, the step of determining, for each actual data edge in the actual data stream to be compared, a reference data edge that matches the actual data edge in the reference data stream comprises:

[0015] For each actual data edge in the actual data stream to be compared, determine a position deviation between a time position of the actual data edge and a time position of at least one reference data edge in the reference data stream, and determine a reference data edge in the reference data stream that has a minimum position deviation from the actual data edge;

[0016] For each actual data edge in the actual data stream to be compared, a reference data edge in the reference data stream having a minimum position deviation from the actual data edge is determined as a reference data edge that matches the actual data edge.

[0017] In a preferred embodiment of the present application, in the above-mentioned method for determining the time interval error, the step of determining, for each actual data edge in the actual data stream to be compared, a position deviation between the time position of the actual data edge and the time position of at least one reference data edge in the reference data stream, and determining, in the reference data stream, a reference data edge having a minimum position deviation from the actual data edge, comprises:

[0018] For each actual data edge in the actual data stream to be compared, the actual data edge is used as a target actual data edge, and the following operations are performed on the target actual data edge:

[0019] Traversing the reference data edges in the reference data stream in sequence, and for a currently traversed reference data edge, calculating a third position deviation between a time position of the currently traversed reference data edge and a time position of the target actual data edge, and calculating a fourth position deviation between a time position of a reference data edge next to the currently traversed reference data edge and a time position of the target actual data edge;

[0020] When the fourth position deviation is greater than the third position deviation, the currently traversed reference data edge is used as the reference data edge with the minimum position deviation with the target actual data edge, and the traversal of the reference data edges in the reference data stream is stopped; alternatively, when the fourth position deviation is not greater than the third position deviation, the next reference data edge of the currently traversed reference data edge is used as the new currently traversed reference data edge, until a reference data edge with the minimum position deviation with the target actual data edge is determined.

[0021] In a preferred embodiment of the present application, in the above-mentioned method for determining the time interval error, the step of determining, for each actual data edge in the actual data stream to be compared, a position deviation between the time position of the actual data edge and the time position of at least one reference data edge in the reference data stream, and determining, in the reference data stream, a reference data edge having a minimum position deviation from the actual data edge, comprises:

[0022] Taking the first reference data edge in the reference data stream as the reference data edge having the minimum position deviation from the first actual data edge in the actual data stream to be compared;

[0023] Polling each actual data edge except the first actual data edge in the actual data stream to be compared in sequence, and performing a target operation on the actual data edge currently polled to determine a reference data edge having a minimum position deviation from the actual data edge currently polled, wherein the target operation includes:

[0024] Starting from a reference data edge having a minimum position deviation with a previous actual data edge of a currently polled actual data edge, the reference data edges in the reference data stream are traversed in sequence, and for the currently traversed reference data edge, a fifth position deviation between a time position of the currently traversed reference data edge and a time position of the currently polled actual data edge is calculated, and a sixth position deviation between a time position of a next reference data edge of the currently traversed reference data edge and the currently polled actual data edge is calculated;

[0025] When the sixth position deviation is greater than the fifth position deviation, the currently traversed reference data edge is used as the reference data edge with the minimum position deviation from the currently polled actual data edge, and the traversal of the reference data edges in the reference data stream is stopped; alternatively, when the sixth position deviation is not greater than the fifth position deviation, the next reference data edge of the currently traversed reference data edge is used as the new currently traversed reference data edge, until a reference data edge with the minimum position deviation from the currently polled actual data edge is determined.

[0026] In a preferred embodiment of the present application, in the above-mentioned method for determining the time interval error, the step of determining, for each actual data edge in the actual data stream to be compared, a position deviation between the time position of the actual data edge and the time position of at least one reference data edge in the reference data stream, and determining, in the reference data stream, a reference data edge having a minimum position deviation from the actual data edge, comprises:

[0027] For each actual data edge in the actual data stream to be compared, determining a position deviation between a time position of the actual data edge and a time position of each reference data edge in the reference data stream;

[0028] For each actual data edge in the actual data stream to be compared, the position deviation with the minimum value is determined among the position deviations corresponding to the actual data edge, and the reference data edge corresponding to the position deviation is determined as the reference data edge with the minimum position deviation with the actual data edge.

[0029] In a preferred embodiment of the present application, in the above-mentioned method for determining the time interval error, for each actual data edge in the actual data stream to be compared, determining the position deviation between the time position of the actual data edge and the time position of the reference data edge matched by the actual data edge, and using the position deviation as the corresponding time interval error, comprises:

[0030] For each actual data edge in the actual data stream to be compared, performing a data edge type comparison analysis on the actual data edge and a reference data edge that matches the actual data edge to obtain a corresponding comparison analysis result, wherein the data edge type includes a rising edge and a falling edge;

[0031] When there is at least one actual data edge in the actual data stream to be compared and the comparison analysis result corresponding to the actual data edge reflects that the data edge type between the actual data edge and the reference data edge is different, re-determine the reference data stream, and determine the time interval error based on the re-determined reference data stream;

[0032] When there is no comparison analysis result corresponding to at least one actual data edge in the actual data stream to be compared, which reflects that the data edge types between the actual data edge and the reference data edge are different, for each actual data edge in the actual data stream to be compared, the position deviation between the time position of the actual data edge and the time position of the reference data edge matching the actual data edge is determined, and the position deviation is used as the time interval error corresponding to the actual data edge.

[0033] The present application also provides a time interval error determination device, comprising:

[0034] A data stream acquisition module, used to acquire an original actual data stream and a reference data stream, wherein the original actual data stream includes a plurality of actual data edges, and the reference data stream includes a plurality of reference data edges;

[0035] a position deviation determination module, configured to sequentially traverse the actual data edges in the original actual data stream, and, for a currently traversed actual data edge, calculate a first position deviation between a time position of the currently traversed actual data edge and a time position of a first reference data edge in the reference data stream, and calculate a second position deviation between a time position of a next actual data edge of the currently traversed actual data edge and a time position of the first reference data edge in the reference data stream;

[0036] A data edge determination module, configured to, when the second position deviation is greater than the first position deviation, use the actual data edge currently traversed as the starting actual data and stop traversing the actual data edge in the original actual data stream, or, when the second position deviation is not greater than the first position deviation, use the next actual data edge of the actual data edge currently traversed as the new actual data edge currently traversed, until the starting actual data is determined;

[0037] A data stream segmentation module, configured to segment a plurality of actual data edges included in the original actual data stream based on the determined starting actual data to form an actual data stream to be compared, wherein the starting actual data edge is used as the first actual data edge in the actual data stream to be compared;

[0038] The time interval error determination module is used to compare and analyze the actual data edge in the actual data stream to be compared with the reference data edge in the reference data stream to determine the position deviation between the time position of the actual data edge and the time position of the reference data edge as the corresponding time interval error.

[0039] Based on the above, the present application also provides an electronic device, including:

[0040] Memory for storing computer programs;

[0041] The processor connected to the memory is used to execute the computer program stored in the memory to implement the above-mentioned time interval error determination method.

[0042] On the basis of the above, the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is run, each step of the above-mentioned method for determining the time interval error is executed.

[0043] The time interval error determination method and device, electronic device and storage medium provided in the present application first obtain the original actual data stream and the reference data stream; secondly, determine the starting actual data edge in the original actual data stream; then, based on the determined starting actual data edge, segment the multiple actual data edges included in the original actual data stream to form an actual data stream to be compared; finally, compare and analyze the actual data edge in the actual data stream to be compared and the reference data edge in the reference data stream to determine the position deviation between the time position of the actual data edge and the time position of the reference data edge, and use it as the corresponding time interval error. Based on the above content, since the time position of the actual data edge in the original actual data stream and the time position of the first reference data edge in the reference data stream will be compared and analyzed for position deviation, the starting actual data edge (the real first actual data edge) in the original actual data stream can be reliably determined, and the actual data stream to be compared formed by the segmentation based on the starting actual data edge has a higher reliability. Therefore, the reliability of the comparative analysis based on the actual data stream to be compared and the reference data stream can also be guaranteed, thereby ensuring that the reliability of the time interval error obtained by the comparative analysis is also high, thereby improving the problem of relatively low reliability of the time interval error determination existing in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings.

[0045] Figure 1 A structural block diagram of an electronic device provided in an embodiment of the present application.

[0046] Figure 2 A flowchart of a method for determining a time interval error provided in an embodiment of the present application.

[0047] Figure 3 A schematic diagram of the rising edge and the falling edge provided in an embodiment of the present application.

[0048] Figure 4 A trend diagram of the time interval error provided in an embodiment of the present application.

[0049] Figure 5 A histogram of time interval errors provided in an embodiment of the present application.

[0050] Figure 6 A frequency spectrum diagram of the time interval error provided in an embodiment of the present application.

[0051] Figure 7 A schematic diagram of jitter analysis provided in an embodiment of the present application.

[0052] Figure 8 A block diagram of a device for determining a time interval error provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0054] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0055] like Figure 1 As shown, an embodiment of the present application provides an electronic device, wherein the electronic device may include a memory, a processor, and a time interval error determination device.

[0056] In detail, the memory and the processor are electrically connected directly or indirectly to realize data transmission or interaction. For example, the memory and the processor can be electrically connected through one or more communication buses or signal lines. The time interval error determination device includes at least one software function module stored in the memory in the form of software or firmware. The processor is used to execute an executable computer program stored in the memory, for example, the software function module and computer program included in the time interval error determination device, so as to implement the time interval error determination method provided in the embodiment of the present application.

[0057] Optionally, the memory can be, but is not limited to, random access memory (RAM), read only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.

[0058] Furthermore, the processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a system on chip (SoC), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0059] Understandably, Figure 1 The structure shown is for illustration only, and the electronic device may also include Figure 1 More or fewer components as shown, or with Figure 1 The different configurations shown, for example, may also include a communication unit for exchanging information with other devices (such as a background server).

[0060] Combination Figure 2 The embodiment of the present application further provides a method for determining a time interval error applicable to the above electronic device, wherein the method steps defined in the process related to the method for determining a time interval error can be implemented by the electronic device.

[0061] The following will Figure 2 The specific process shown is explained in detail.

[0062] Step S110, obtaining the original actual data stream and the reference data stream.

[0063] In an embodiment of the present application, the electronic device can obtain an original actual data stream (ie, actual signal) and a reference data stream (ie, ideal signal), wherein the original actual data stream includes multiple actual data edges, and the reference data stream includes multiple reference data edges.

[0064] Step S120, traverse the actual data edges in the original actual data stream in turn, and, for the actual data edge currently traversed, calculate the first position deviation between the time position of the actual data edge currently traversed and the time position of the first reference data edge in the reference data stream, and calculate the second position deviation between the time position of the next actual data edge of the actual data edge currently traversed and the time position of the first reference data edge in the reference data stream.

[0065] In an embodiment of the present application, after acquiring the original actual data stream and the reference data stream, the electronic device may sequentially traverse the actual data edges in the original actual data stream (for example, the traversal may be performed according to the sequential relationship between the time positions of each actual data edge, such as traversal along the direction from early to late in time), and, for the actual data edge currently traversed, calculate the first position deviation between the time position of the actual data edge currently traversed and the time position of the first reference data edge in the reference data stream, and calculate the second position deviation between the time position of the next actual data edge of the actual data edge currently traversed and the time position of the first reference data edge in the reference data stream. For example, when the first actual data edge in the original actual data stream is currently traversed, the position deviation between the time position of the first actual data edge and the time position of the first reference data edge may be calculated, so that the first position deviation may be obtained, and the position deviation between the time position of the second actual data edge and the time position of the first reference data edge may be calculated, so that the second position deviation may be obtained.

[0066] Step S130, when the second position deviation is greater than the first position deviation, the actual data edge currently traversed is taken as the starting actual data edge, and the traversal of the actual data edge in the original actual data stream is stopped; or, when the second position deviation is not greater than the first position deviation, the next actual data edge of the actual data edge currently traversed is taken as the new actual data edge currently traversed, until the starting actual data edge is determined.

[0067] In an embodiment of the present application, after obtaining the first position deviation and the second position deviation, the electronic device may compare the second position deviation with the first position deviation, and then, on the one hand, when the second position deviation is greater than the first position deviation, the actual data edge currently traversed is used as the starting actual data edge, and the actual data edge in the original actual data stream is stopped from being traversed. On the other hand, when the second position deviation is not greater than the first position deviation, the next actual data edge of the actual data edge currently traversed is used as the new actual data edge currently traversed, until the starting actual data edge is determined. For example, when traversing to the first actual data edge in the original actual data stream, if the first actual data edge is not used as the starting actual data edge, the second actual data edge may be used as the actual data edge currently traversed, and the corresponding first position deviation and second position deviation are determined according to step S120, and then, based on the first position deviation and the second position deviation, it is determined whether the second actual data edge is used as the starting actual data edge, and if so, the actual data edge in the original actual data stream is stopped from being traversed, and if not, the third actual data edge is traversed.

[0068] Step S140 , based on the determined starting actual data edge, multiple actual data edges included in the original actual data stream are segmented to form an actual data stream to be compared.

[0069] In an embodiment of the present application, after determining the starting actual data edge, the electronic device can segment the multiple actual data edges included in the original actual data stream based on the determined starting actual data edge to form an actual data stream to be compared. The starting actual data edge is the first actual data edge in the actual data stream to be compared. In other words, the actual data stream to be compared includes the starting actual data edge and each actual data edge whose time position is after the starting actual data edge, and can be arranged according to the corresponding time position.

[0070] Step S150, comparing and analyzing the actual data edge in the actual data stream to be compared with the reference data edge in the reference data stream to determine the position deviation between the time position of the actual data edge and the time position of the reference data edge as the corresponding time interval error.

[0071] In an embodiment of the present application, after forming the actual data stream to be compared, the electronic device may compare and analyze the actual data edge in the actual data stream to be compared and the reference data edge in the reference data stream to determine the position deviation between the time position of the actual data edge and the time position of the reference data edge, and then, the position deviation may be used as the time interval error between the corresponding actual data edge and the reference data edge.

[0072] Based on the above content, since the time position of the actual data edge in the original actual data stream and the time position of the first reference data edge in the reference data stream will be compared and analyzed for position deviation, the starting actual data edge (the real first actual data edge) in the original actual data stream can be reliably determined, and the actual data stream to be compared formed by the segmentation based on the starting actual data edge has a higher reliability. Therefore, the reliability of the comparative analysis based on the actual data stream to be compared and the reference data stream can also be guaranteed, thereby ensuring that the reliability of the time interval error obtained by the comparative analysis is also high, thereby improving the problem of relatively low reliability of the time interval error determination existing in the prior art.

[0073] It should be noted that for the above step S150, the specific method of comparing and analyzing the actual data edge with the reference data edge is not limited and can be selected according to actual needs.

[0074] For example, in an alternative embodiment, in order to make the determined time interval error effectively reflect the real error (or jitter) between the actual data edge and the reference data edge, the above-mentioned step S150 may further include step S151 and step S152, and the specific content of each step is described as follows.

[0075] Step S151 : for each actual data edge in the actual data stream to be compared, determine in the reference data stream a reference data edge that matches the actual data edge.

[0076] In an embodiment of the present application, after the actual data stream to be compared is formed, for each actual data edge in the actual data stream to be compared, a reference data edge that matches the actual data edge can be determined in the reference data stream, such as determining the reference data edge that matches the first actual data edge in the actual data stream to be compared, the reference data edge that matches the second actual data edge, the reference data edge that matches the third actual data edge, and so on.

[0077] Step S152, for each actual data edge in the actual data stream to be compared, determine the position deviation between the time position of the actual data edge and the time position of the reference data edge that matches the actual data edge, and use the position deviation as the corresponding time interval error.

[0078] In an embodiment of the present application, after determining the reference data edge that matches the actual data edge, the position deviation between the time position of the actual data edge and the time position of the reference data edge that matches the actual data edge can be determined for each actual data edge in the actual data stream to be compared, and the position deviation can be used as the corresponding time interval error. For example, for the first actual data edge in the actual data stream to be compared, the position deviation (such as the absolute difference in time) between the time position of the first actual data edge and the time position of the reference data edge that matches the first actual data edge (such as the first reference data edge in the reference data stream) can be determined, and then the position deviation can be used as the time interval error of the first actual data edge, that is, the jitter of the first actual data edge is obtained. Based on this, since the reference data edge that matches the actual data edge is determined first, the time position of the actual data edge and the matching reference data edge can be determined by deviation, so that the object of the deviation determination can be guaranteed to have a high reliability.

[0079] It can be understood that, in the above step S151, the specific method of determining the reference data edge that matches the actual data edge is not limited and can be selected according to actual needs.

[0080] For example, in an alternative embodiment, in order to ensure that the determined actual data edge has a better match with the reference data edge, that is, the corresponding reference data edge can be used as a reference standard for the actual data edge, the above-mentioned step S151 can further include step S151a and step S151b, and the specific contents of each step are described as follows.

[0081] Step S151a, for each actual data edge in the actual data stream to be compared, determine the position deviation between the time position of the actual data edge and the time position of at least one reference data edge in the reference data stream, and in the reference data stream, determine the reference data edge that has the minimum position deviation with the actual data edge.

[0082] In an embodiment of the present application, for each actual data edge in the actual data stream to be compared, the position deviation between the time position of the actual data edge and the time position of at least one reference data edge in the reference data stream can be determined, that is, the time position of the actual data edge and the time position of the reference data edge are calculated to differ, and then, in the reference data stream, the reference data edge having the minimum position deviation with the actual data edge can be determined.

[0083] Step S151b, for each actual data edge in the actual data stream to be compared, determine the reference data edge in the reference data stream that has the minimum position deviation with the actual data edge as the reference data edge that matches the actual data edge.

[0084] In the embodiment of the present application, after determining the reference data edge with the minimum position deviation from the actual data edge, for each actual data edge in the actual data stream to be compared, the reference data edge with the minimum position deviation from the actual data edge in the reference data stream can be determined as the reference data edge that matches the actual data edge. Based on this, since in the previous steps, the original actual data stream is segmented to form the actual data stream to be compared, so that the matching between the actual data stream to be compared and the reference data stream can be higher, therefore, on this basis, using the reference data edge with the minimum position deviation from the actual data edge as the matching reference data edge can have higher reliability.

[0085] For the above step S151a, the specific method of determining the reference data edge having the minimum position deviation from the actual data edge is not limited and can be selected according to actual needs.

[0086] For example, in a first alternative implementation, the above step S151a may include:

[0087] For each actual data edge in the actual data stream to be compared, the actual data edge is used as a target actual data edge (exemplarily, each actual data edge can be used as a target actual data edge in sequence or in parallel), and the following operations are performed on the target actual data edge:

[0088] First, the reference data edges in the reference data stream may be traversed in sequence (for example, the traversal may be performed according to the order of the corresponding time positions, such as traversing the first reference data edge first and then traversing the second reference data edge), and for the reference data edge currently traversed, a third position deviation between the time position of the reference data edge currently traversed and the time position of the target actual data edge may be calculated (that is, the position deviation between the time position of the reference data edge currently traversed and the time position of the target actual data edge may be calculated, so that the third position deviation may be obtained, for example, the position deviation between the time position of the first reference data edge and the time position of the target actual data edge may be calculated), and a fourth position deviation between the time position of the next reference data edge of the reference data edge currently traversed and the time position of the target actual data edge may be calculated (that is, the position deviation between the time position of the next reference data edge of the reference data edge currently traversed and the time position of the target actual data edge may be calculated, so that the fourth position deviation may be obtained, for example, the position deviation between the time position of the second reference data edge and the time position of the target actual data edge may be calculated);

[0089] Secondly, when the fourth position deviation is greater than the third position deviation (because the reference data stream will strictly circulate in the manner of "0, 1, 0, 1, 0, 1", the actual data stream to be compared may be distributed in the manner of "0, 1, 1, 1, 0", and in the aforementioned steps, the reference data edges will be traversed in sequence, so that when the position deviation of the next reference data edge is larger, the position deviation of the currently traversed reference data edge is generally the smallest), the currently traversed reference data edge can be used as the reference data edge with the minimum position deviation from the target actual data edge, and the traversal of the reference data edges in the reference data stream is stopped; or, when the fourth position deviation is not greater than the third position deviation, the next reference data edge of the currently traversed reference data edge is used as the new currently traversed reference data edge, and then, the third position deviation and the fourth position deviation can also be calculated for the new currently traversed reference data edge, and a relative size comparison is performed until the reference data edge with the minimum position deviation from the target actual data edge is determined.

[0090] For example, in a second alternative implementation, the above step S151a may include:

[0091] First, the first reference data edge in the reference data stream can be used as the reference data edge with the minimum position deviation from the first actual data edge in the actual data stream to be compared. That is, based on the previous steps (such as step S120, step S130 and step S140), it can be ensured that the position deviation between the first actual data edge in the actual data stream to be compared and the first reference data edge in the reference data stream is the minimum, so that the efficiency can be improved.

[0092] Then, each actual data edge except the first actual data edge in the actual data stream to be compared may be polled in turn, and a target operation may be performed on the actual data edge currently polled to determine a reference data edge having a minimum position deviation from the actual data edge currently polled, wherein the target operation includes:

[0093] In the first step, starting from the reference data edge whose position deviation from the previous actual data edge of the actual data edge currently polled has the minimum value, the reference data edges in the reference data stream are traversed in sequence (for example, if the actual data edge currently polled is the second actual data edge, then the previous actual data edge is the first actual data edge. At this time, the previous actual data edge has determined the reference data edge with the minimum value of the corresponding position deviation, that is, the first reference data edge. In this way, starting from the first reference data edge, the first reference data edge traversed is the second reference data edge; for another example, if the actual data edge currently polled is the third actual data edge, then the previous actual data edge is the second an actual data edge, at this time, the previous actual data edge has determined the reference data edge with the minimum position deviation, such as the second reference data edge or the third reference data edge, so it can start from the second reference data edge or the third reference data edge, that is, the first reference data edge traversed is the third reference data edge or the fourth reference data edge, and so on), and for the reference data edge currently traversed, calculate the fifth position deviation between the time position of the reference data edge currently traversed and the time position of the actual data edge currently polled, and calculate the sixth position deviation between the time position of the next reference data edge of the reference data edge currently traversed and the actual data edge currently polled;

[0094] In the second step, when the sixth position deviation is greater than the fifth position deviation, the currently traversed reference data edge can be used as the reference data edge with the minimum position deviation between it and the actual data edge currently polled, and the traversal of the reference data edges in the reference data stream can be stopped. Alternatively, when the sixth position deviation is not greater than the fifth position deviation, the next reference data edge of the currently traversed reference data edge can be used as the new currently traversed reference data edge, until the reference data edge with the minimum position deviation between it and the actual data edge currently polled is determined, and the relevant description in the previous text can be referred to.

[0095] For example, in a third alternative implementation, the above step S151a may include:

[0096] First, for each actual data edge in the actual data stream to be compared, the position deviation between the time position of the actual data edge and the time position of each reference data edge in the reference data stream can be determined, so that parallel calculation can be performed to improve efficiency;

[0097] Then, for each actual data edge in the actual data stream to be compared, the position deviation with the minimum value can be determined among the position deviations corresponding to the actual data edge, and the reference data edge corresponding to the position deviation can be determined as the reference data edge with the minimum position deviation with the actual data edge.

[0098] It can be understood that, in the above step S152, the specific method of determining the time interval error is not limited and can be selected according to actual needs.

[0099] For example, in an alternative implementation, in order to further improve the reliability of the determined time interval error, the above-mentioned step S152 may include step S152a, step S152b and step S152c, and the specific content of each step is described as follows.

[0100] Step S152a, for each actual data edge in the actual data stream to be compared, performing a data edge type comparison analysis on the actual data edge and a reference data edge that matches the actual data edge to obtain a corresponding comparison analysis result.

[0101] In the embodiment of the present application, after determining the reference data edge that matches the actual data edge, for each actual data edge in the actual data stream to be compared, the actual data edge and the reference data edge that matches the actual data edge can be compared and analyzed for data edge type to obtain corresponding comparison and analysis results. The data edge type includes rising edge and falling edge, such as Figure 3 shown.

[0102] Step S152b, when there is at least one actual data edge in the actual data stream to be compared and the comparison analysis result reflects that the data edge type between the actual data edge and the reference data edge is different, the reference data stream is re-determined and the time interval error is determined based on the re-determined reference data stream.

[0103] In an embodiment of the present application, after obtaining the corresponding comparative analysis results, when there is at least one actual data edge in the actual data stream to be compared and the corresponding comparative analysis results reflect that the data edge types between the actual data edge and the reference data edge are different, the reference data stream can be re-determined, such as requesting to re-acquire the reference data stream, and determining the time interval error based on the re-determined reference data stream. It should be noted that, through the research of the inventors of the present application, it is found that since the time interval error actually represents the jitter of the signal, and the jitter is generally small, after determining the matching reference data edge, in general, the data edge types between the actual data edge and the matching reference data edge are the same, such as both belonging to the rising edge or both belonging to the falling edge. Therefore, as long as the data edge types are different, it means that the generated reference data stream may be abnormal, and a new reference data stream needs to be re-determined, thereby avoiding the problem of low reliability of the determined time interval error due to the abnormality of the reference data stream.

[0104] Step S152c, when there is no comparison analysis result corresponding to at least one actual data edge in the actual data stream to be compared, which reflects that the data edge types between the actual data edge and the reference data edge are different, for each actual data edge in the actual data stream to be compared, determine the position deviation between the time position of the actual data edge and the time position of the reference data edge matching the actual data edge, and use the position deviation as the time interval error corresponding to the actual data edge.

[0105] In an embodiment of the present application, after obtaining the corresponding comparison and analysis results, if there is no comparison and analysis result corresponding to at least one actual data edge in the actual data stream to be compared, reflecting that the data edge types between the actual data edge and the reference data edge are different (that is, they are the same), for each actual data edge in the actual data stream to be compared, the position deviation between the time position of the actual data edge and the time position of the reference data edge matching the actual data edge can be determined, and the position deviation is used as the time interval error corresponding to the actual data edge.

[0106] The following is a detailed description of the technical effects of this application in combination with actual engineering tests:

[0107] The following two tests are performed on this application. The first is to make a trend chart, histogram statistics and spectrum chart of the TIE (time interval error) of the input signal calculated and processed by this application.

[0108] The signal data parameters are: frequency is 100MHz, period jitter frequency is 10MHz, period jitter amplitude is 200ps, random jitter mean is 0s, random jitter standard deviation is 25ps, random jitter seed is 3, signal type is clock square wave, sampling rate is 100GSa / s; after processing the input signal, the actual data stream and the reference data stream are obtained, and then the time interval error determination processing of the present application is performed on the actual data stream and the reference data stream to obtain the TIE sequence, and its trend diagram is shown in Figure 4 As shown, the histogram is shown Figure 5 As shown, the spectrum is shown in Figure 6 The jitter component in the signal includes random jitter, and the histogram statistics of random jitter show Gaussian distribution characteristics. Figure 5 The displayed results are consistent with it; in addition, the signal contains 10MHz periodic jitter, Figure 6 The FFT spectrum component shown is 10 MHz, which is consistent with the input signal. Therefore, the time interval error analyzed using the method of the present application is correct.

[0109] The second test is to apply the method of the present application to the jitter analysis function of a high-speed digital oscilloscope, and use the method of the present application to perform jitter analysis on the test terminal. The experimental equipment is an M9180 and an 80GSa / s sampling rate and 18GHz bandwidth oscilloscope. The signal parameters generated by the M8190 are: the signal frequency is 10MHz, the signal type is a clock square wave, the signal amplitude Vpp=1V, and the signal contains 1 Gaussian distributed random jitter and 1 periodic jitter; the generated signal is collected using an 80GSa / s sampling rate and 18GHz bandwidth oscilloscope, and then the jitter analysis is performed using the method of the present application. The analysis results are shown in Figure 7 As shown. Figure 7 In the spectrum analysis part F3, only one frequency is consistent with the set one-cycle jitter; the histogram statistics F2 shows two Gaussian tail distributions, which is completely consistent with the generated data with deterministic jitter and random jitter synthesis dual Dirac model.

[0110] Combination Figure 8 The embodiment of the present application also provides a time interval error determination device applicable to the above electronic device. The time interval error determination device may include a data stream acquisition module, a position deviation determination module, a data edge determination module, a data stream segmentation module and a time interval error determination module.

[0111] The data stream acquisition module can be used to acquire an original actual data stream and a reference data stream, wherein the original actual data stream includes multiple actual data edges, and the reference data stream includes multiple reference data edges. In an embodiment of the present application, the data stream acquisition module can be used to perform Figure 2 As shown in step S110, the relevant contents of the data stream acquisition module can refer to the above description of step S110.

[0112] The position deviation determination module can be used to sequentially traverse the actual data edges in the original actual data stream, and, for the actual data edge currently traversed, calculate the first position deviation between the time position of the actual data edge currently traversed and the time position of the first reference data edge in the reference data stream, and calculate the second position deviation between the time position of the next actual data edge of the actual data edge currently traversed and the time position of the first reference data edge in the reference data stream. In an embodiment of the present application, the position deviation determination module can be used to perform Figure 2 As shown in step S120, the relevant contents of the position deviation determination module can refer to the above description of step S120.

[0113] The data edge determination module can be used to use the actual data edge currently traversed as the starting actual data when the second position deviation is greater than the first position deviation, and stop traversing the actual data edge in the original actual data stream, or, when the second position deviation is not greater than the first position deviation, use the next actual data edge of the actual data edge currently traversed as the new actual data edge currently traversed, until the starting actual data is determined. In the embodiment of the present application, the data edge determination module can be used to perform Figure 2 As shown in step S130, the relevant contents of the data edge determination module can refer to the above description of step S130.

[0114] The data stream segmentation module can be used to segment multiple actual data edges included in the original actual data stream based on the determined starting actual data to form an actual data stream to be compared, wherein the starting actual data edge is used as the first actual data edge in the actual data stream to be compared. Figure 2 As shown in step S140, the relevant contents of the data stream segmentation module can refer to the above description of step S140.

[0115] The time interval error determination module can be used to compare and analyze the actual data edge in the actual data stream to be compared with the reference data edge in the reference data stream to determine the position deviation between the time position of the actual data edge and the time position of the reference data edge as the corresponding time interval error. Figure 2 As shown in step S150, the relevant contents of the time interval error determination module can refer to the above description of step S150.

[0116] In an embodiment of the present application, corresponding to the above-mentioned method for determining the time interval error applied to the electronic device, a computer-readable storage medium is also provided, in which a computer program is stored, and when the computer program is run, each step of the method for determining the time interval error is executed. Among them, each step executed when the aforementioned computer program is run will not be described one by one here, and reference can be made to the above explanation of the method for determining the time interval error.

[0117] In summary, the time interval error determination method and device, electronic device and storage medium provided in the present application first obtain the original actual data stream and the reference data stream; secondly, determine the starting actual data edge in the original actual data stream; then, based on the determined starting actual data edge, segment the multiple actual data edges included in the original actual data stream to form an actual data stream to be compared; finally, compare and analyze the actual data edge in the actual data stream to be compared and the reference data edge in the reference data stream to determine the position deviation between the time position of the actual data edge and the time position of the reference data edge, and use it as the corresponding time interval error. Based on the above content, since the time position of the actual data edge in the original actual data stream and the time position of the first reference data edge in the reference data stream will be compared and analyzed for position deviation, the starting actual data edge (the real first actual data edge) in the original actual data stream can be reliably determined, and the actual data stream to be compared formed by the segmentation based on the starting actual data edge has a higher reliability. Therefore, the reliability of the comparative analysis based on the actual data stream to be compared and the reference data stream can also be guaranteed, thereby ensuring that the reliability of the time interval error obtained by the comparative analysis is also high, thereby improving the problem of relatively low reliability of the time interval error determination existing in the prior art.

[0118] In several embodiments provided in the embodiments of the present application, it should be understood that the disclosed device and method can also be implemented in other ways. The device and method embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0119] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0120] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk. It should be noted that, in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.

[0121] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for determining a time interval error, characterized in that: include: Acquire an original actual data stream and a reference data stream, wherein the original actual data stream includes a plurality of actual data edges, and the reference data stream includes a plurality of reference data edges; The actual data edges in the original actual data stream are traversed in sequence, and, for the actual data edge currently traversed, a first position deviation between the time position of the actual data edge currently traversed and the time position of the first reference data edge in the reference data stream is calculated, and a second position deviation between the time position of the next actual data edge of the actual data edge currently traversed and the time position of the first reference data edge in the reference data stream is calculated; When the second position deviation is greater than the first position deviation, the actual data edge currently traversed is used as the starting actual data edge, and the traversal of the actual data edge in the original actual data stream is stopped; or, when the second position deviation is not greater than the first position deviation, the next actual data edge of the actual data edge currently traversed is used as the new actual data edge currently traversed, until the starting actual data edge is determined; Based on the determined starting actual data edge, multiple actual data edges included in the original actual data stream are segmented to form an actual data stream to be compared, wherein the starting actual data edge serves as the first actual data edge in the actual data stream to be compared; The actual data edge in the actual data stream to be compared and the reference data edge in the reference data stream are compared and analyzed to determine the position deviation between the time position of the actual data edge and the time position of the reference data edge as the corresponding time interval error.

2. The method for determining time interval error according to claim 1, characterized in that: The step of comparing and analyzing the actual data edge in the actual data stream to be compared with the reference data edge in the reference data stream to determine the position deviation between the time position of the actual data edge and the time position of the reference data edge as the corresponding time interval error includes: For each actual data edge in the actual data stream to be compared, determining in the reference data stream a reference data edge that matches the actual data edge; For each actual data edge in the actual data stream to be compared, a position deviation between a time position of the actual data edge and a time position of a reference data edge that matches the actual data edge is determined, and the position deviation is used as a corresponding time interval error.

3. The method for determining time interval error according to claim 2, characterized in that: The step of determining, for each actual data edge in the actual data stream to be compared, a reference data edge that matches the actual data edge in the reference data stream comprises: For each actual data edge in the actual data stream to be compared, determine a position deviation between a time position of the actual data edge and a time position of at least one reference data edge in the reference data stream, and determine a reference data edge in the reference data stream that has a minimum position deviation from the actual data edge; For each actual data edge in the actual data stream to be compared, a reference data edge in the reference data stream having a minimum position deviation from the actual data edge is determined as a reference data edge that matches the actual data edge.

4. The method for determining time interval error according to claim 3, characterized in that: The step of determining, for each actual data edge in the actual data stream to be compared, a position deviation between a time position of the actual data edge and a time position of at least one reference data edge in the reference data stream, and determining, in the reference data stream, a reference data edge having a minimum position deviation from the actual data edge, comprises: For each actual data edge in the actual data stream to be compared, the actual data edge is used as a target actual data edge, and the following operations are performed on the target actual data edge: Traversing the reference data edges in the reference data stream in sequence, and for a currently traversed reference data edge, calculating a third position deviation between a time position of the currently traversed reference data edge and a time position of the target actual data edge, and calculating a fourth position deviation between a time position of a reference data edge next to the currently traversed reference data edge and a time position of the target actual data edge; When the fourth position deviation is greater than the third position deviation, the currently traversed reference data edge is used as the reference data edge with the minimum position deviation with the target actual data edge, and the traversal of the reference data edges in the reference data stream is stopped; alternatively, when the fourth position deviation is not greater than the third position deviation, the next reference data edge of the currently traversed reference data edge is used as the new currently traversed reference data edge, until a reference data edge with the minimum position deviation with the target actual data edge is determined.

5. The method for determining time interval error according to claim 3, characterized in that: The step of determining, for each actual data edge in the actual data stream to be compared, a position deviation between a time position of the actual data edge and a time position of at least one reference data edge in the reference data stream, and determining, in the reference data stream, a reference data edge having a minimum position deviation from the actual data edge, comprises: Taking the first reference data edge in the reference data stream as the reference data edge having the minimum position deviation from the first actual data edge in the actual data stream to be compared; Polling each actual data edge except the first actual data edge in the actual data stream to be compared in sequence, and performing a target operation on the actual data edge currently polled to determine a reference data edge having a minimum position deviation from the actual data edge currently polled, wherein the target operation includes: Starting from a reference data edge having a minimum position deviation with a previous actual data edge of a currently polled actual data edge, the reference data edges in the reference data stream are traversed in sequence, and for the currently traversed reference data edge, a fifth position deviation between a time position of the currently traversed reference data edge and a time position of the currently polled actual data edge is calculated, and a sixth position deviation between a time position of a next reference data edge of the currently traversed reference data edge and the currently polled actual data edge is calculated; When the sixth position deviation is greater than the fifth position deviation, the currently traversed reference data edge is used as the reference data edge with the minimum position deviation from the currently polled actual data edge, and the traversal of the reference data edges in the reference data stream is stopped; alternatively, when the sixth position deviation is not greater than the fifth position deviation, the next reference data edge of the currently traversed reference data edge is used as the new currently traversed reference data edge, until a reference data edge with the minimum position deviation from the currently polled actual data edge is determined.

6. The method for determining time interval error according to claim 3, characterized in that: The step of determining, for each actual data edge in the actual data stream to be compared, a position deviation between a time position of the actual data edge and a time position of at least one reference data edge in the reference data stream, and determining, in the reference data stream, a reference data edge having a minimum position deviation from the actual data edge, comprises: For each actual data edge in the actual data stream to be compared, determining a position deviation between a time position of the actual data edge and a time position of each reference data edge in the reference data stream; For each actual data edge in the actual data stream to be compared, the position deviation with the minimum value is determined among the position deviations corresponding to the actual data edge, and the reference data edge corresponding to the position deviation is determined as the reference data edge with the minimum position deviation with the actual data edge.

7. The method for determining time interval error according to claim 2, characterized in that: The step of determining, for each actual data edge in the actual data stream to be compared, a position deviation between a time position of the actual data edge and a time position of a reference data edge that matches the actual data edge, and using the position deviation as a corresponding time interval error, comprises: For each actual data edge in the actual data stream to be compared, performing a data edge type comparison analysis on the actual data edge and a reference data edge that matches the actual data edge to obtain a corresponding comparison analysis result, wherein the data edge type includes a rising edge and a falling edge; When there is at least one actual data edge in the actual data stream to be compared and the comparison analysis result corresponding to the actual data edge reflects that the data edge type between the actual data edge and the reference data edge is different, re-determine the reference data stream, and determine the time interval error based on the re-determined reference data stream; When there is no comparison analysis result corresponding to at least one actual data edge in the actual data stream to be compared, which reflects that the data edge types between the actual data edge and the reference data edge are different, for each actual data edge in the actual data stream to be compared, the position deviation between the time position of the actual data edge and the time position of the reference data edge matching the actual data edge is determined, and the position deviation is used as the time interval error corresponding to the actual data edge.

8. A device for determining a time interval error, characterized in that: include: A data stream acquisition module, used to acquire an original actual data stream and a reference data stream, wherein the original actual data stream includes a plurality of actual data edges, and the reference data stream includes a plurality of reference data edges; a position deviation determination module, configured to sequentially traverse the actual data edges in the original actual data stream, and, for a currently traversed actual data edge, calculate a first position deviation between a time position of the currently traversed actual data edge and a time position of a first reference data edge in the reference data stream, and calculate a second position deviation between a time position of a next actual data edge of the currently traversed actual data edge and a time position of the first reference data edge in the reference data stream; A data edge determination module, configured to, when the second position deviation is greater than the first position deviation, use the actual data edge currently traversed as the starting actual data and stop traversing the actual data edge in the original actual data stream, or, when the second position deviation is not greater than the first position deviation, use the next actual data edge of the actual data edge currently traversed as the new actual data edge currently traversed, until the starting actual data is determined; A data stream segmentation module, configured to segment a plurality of actual data edges included in the original actual data stream based on the determined starting actual data to form an actual data stream to be compared, wherein the starting actual data edge is used as the first actual data edge in the actual data stream to be compared; The time interval error determination module is used to compare and analyze the actual data edge in the actual data stream to be compared with the reference data edge in the reference data stream to determine the position deviation between the time position of the actual data edge and the time position of the reference data edge as the corresponding time interval error.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor connected to the memory is used to execute a computer program stored in the memory to implement the time interval error determination method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is run, the method for determining the time interval error according to any one of claims 1 to 7 is executed.

Citation Information

Patent Citations

  • Maximum time interval error calculation method and system

    CN110543482A

  • Comparator threshold correction method and device and sampling circuit

    CN110954938A

  • Signal processing method and device, and detection system

    CN110988961A

  • Control method and device for unmanned equipment

    CN112346467A

  • Fault tree analysis method and device based on maintenance records, electronic equipment and medium

    CN117611137A