Time measurement precision improving method, device, system, equipment, medium and product

By combining a multi-cycle delay chain and an edge position recording module, the fine time value and coarse time value of the pulse edge are calculated, which solves the problem of limited measurement accuracy in the existing technology and improves the time measurement accuracy.

CN120630628APending Publication Date: 2025-09-12SHANGHAI XINGMIAO OPTOELETRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510994160.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-18
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

The measurement accuracy of existing time measurement systems is limited by the delay duration accuracy of the delay device in the delay chain. It is difficult to further improve the measurement accuracy without improving the delay duration accuracy of the delay device.

Method used

A multi-cycle delay chain and edge position recording module are used to calculate the superposition of the fine time value and the coarse time value of the pulse edge, combined with the counting result of the edge clock counting module to determine the time tag value and realize multiple time measurements.

Benefits of technology

Without increasing the dead time of the measurement signal, the time measurement accuracy is significantly improved, and more time measurements can be performed within the specified time, thereby improving the measurement accuracy of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120630628A_ABST
    Figure CN120630628A_ABST
Patent Text Reader

Abstract

The invention discloses a time measurement precision improving method, device, system and equipment, a medium and a product, and relates to the technical field of time measurement. The method is executed by a data processing device located in the time measurement system, the time measurement system further comprises a multi-period delay chain, an edge position recording module and an edge clock counting module, the multi-period delay chain is used for transmitting a measured signal and is formed by connecting M * N delayers with the same delay duration in series, and the edge position recording module is used for recording the edge position of the measured signal. The edge position recording module is used for recording the edge delayer and each appearance position corresponding to each transmission period one by one based on the sampling clock signal; and the data processing device is used for determining a time label value of the pulse edge according to the delay time length, each appearance position from the edge position recording module and the number of the clock periods from the edge clock counting module, so that the time label value of the pulse edge can be determined on the premise that the delay time length precision of the delayer is not improved. And the time measurement precision is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of time measurement technology, and specifically relates to a method, device, system, equipment, medium and product for improving time measurement accuracy. Background Art

[0002] High-precision time measurement technology is needed in many fields of modern science and technology, such as telecommunications, laser ranging and satellite positioning. It is especially widely used in various fields of physics. Fields such as nuclear physics, high-energy physics and medical imaging physics are inseparable from high-precision time measurement technology.

[0003] In time measurement systems, one of the most important parameters is measurement accuracy, which is the deviation between the measured value and the true value. The smaller the deviation, the better the accuracy, indicating higher measurement precision and better performance. Higher measurement accuracy reduces the system's impact on experimental results, improves overall system performance, and increases the accuracy of experimental results. Therefore, during the development of time measurement systems, it is important to maximize measurement accuracy.

[0004] Currently, in existing time measurement systems, to achieve picosecond-level time measurement accuracy, a delay chain based on an FPGA (Field Programmable Gate Array) can be used to measure a fine time value (i.e., the time value within a sampling clock). This fine time value is then added to a coarse time value (i.e., the sampling clock is counted and multiplied by the clock period to obtain a coarse time value, which has a significantly coarser time granularity than the aforementioned fine time value) to obtain the final time tag, thus completing a time measurement. However, the measurement accuracy of existing time measurement systems depends on the accuracy of the fine time value and is limited by the accuracy of the delay duration of the delay device within the delay chain.

[0005] Therefore, how to further improve the measurement accuracy of the time measurement system without improving the delay time accuracy of the delay device is a topic that those skilled in the art urgently need to study. Summary of the Invention

[0006] The purpose of the present invention is to provide a method, device, time measurement system, data processing equipment, computer-readable storage medium and computer program product for improving time measurement accuracy, so as to solve the problem that the measurement accuracy of the existing time measurement system is limited by the delay duration accuracy of the delay device in the delay chain.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions:

[0008] In a first aspect, a method for improving time measurement accuracy is provided, which is performed by a data processing device located in a time measurement system, wherein the time measurement system also includes a multi-cycle delay chain, an edge position recording module and an edge clock counting module, the multi-cycle delay chain is used to transmit the measured signal and is composed of M×N delay devices with the same delay time connected in series, M and N respectively represent natural numbers greater than or equal to 2, the delay time of the delay device is one Nth of the clock period of the sampling clock signal, the edge position recording module is communicatively connected to the data processing device and is used to calculate the edge position based on the sampling clock. a signal recording edge delay device and each occurrence position corresponding to each transmission cycle, wherein the edge delay device is a delay device that is transmitting the pulse edge of the measured signal during recording, the transmission cycle is a clock cycle during the period when the pulse edge is transmitted through the multi-cycle delay chain, the occurrence position is a sequence number of the delay device in the M×N delay devices and arranged along the signal transmission direction, and the edge clock counting module is communicatively connected to the data processing device and is used to count the number of clock cycles that the pulse edge has experienced based on the sampling clock signal;

[0009] The method for improving time measurement accuracy includes:

[0010] Calculating a fine time value of the pulse edge according to the delay time of the delay device and the respective occurrence positions from the edge position recording module, wherein the fine time value refers to a time value that is less than a clock period of the sampling clock signal;

[0011] The rough time value t of the pulse edge is calculated based on the number of clock cycles K that have passed from the edge clock counting module. co =K×T, where K represents a natural number greater than M, and T represents the clock period of the sampling clock signal;

[0012] Superimpose the fine time value and the coarse time value t co , and determine the time tag value of the pulse edge based on the superposition result.

[0013] Based on the above invention, a new solution for improving measurement accuracy by performing multiple time measurements based on a multi-cycle delay chain is provided. The solution is executed by a data processing device within a time measurement system. The time measurement system further includes a multi-cycle delay chain, an edge position recording module, and an edge clock counting module. The multi-cycle delay chain is used to transmit a measured signal and is composed of M×N delay elements connected in series with the same delay duration. The edge position recording module is used to record the occurrence positions of the edge delay elements in a one-to-one correspondence with each transmission cycle based on a sampling clock signal. The data processing device is used to determine the time stamp value of a pulse edge based on the delay duration, the occurrence positions of the edge positions from the edge position recording module, and the number of elapsed clock cycles from the edge clock counting module. Thus, by sequentially transmitting and measuring the time of a pulse edge within multiple adjacent clock cycles, the dead time of the measured signal is not reduced, and the solution is equivalent to performing multiple measurements on a single pulse edge. This further improves time measurement accuracy without increasing the delay duration accuracy of the delay elements, facilitating practical application and widespread adoption.

[0014] In one possible design, calculating the fine time value of the pulse edge according to the delay time of the delay device and the respective occurrence positions from the edge position recording module includes:

[0015] For each occurrence position from the edge position recording module, the corresponding first occurrence time value t is calculated according to the delay time τ of the delay device and the corresponding sequence number n. n,1 =n×τ;

[0016] Superimpose all the first occurrence time values ​​to obtain the first total time value t total,1 ;

[0017] According to the first total time value, the fine time value of the pulse edge is calculated Wherein, m represents a natural number greater than or equal to 1 and less than M, and T represents a clock period of the sampling clock signal.

[0018] In one possible design, calculating the fine time value of the pulse edge according to the delay time of the delay device and the respective occurrence positions from the edge position recording module includes:

[0019] For each occurrence position from the edge position recording module, the corresponding second occurrence time value is calculated according to the delay time τ of the delay device and the corresponding sequence number n. in, represents the period number of the corresponding transmission period after the pulse edge is transmitted into the multi-period delay chain, and T represents the clock period of the sampling clock signal;

[0020] Superimpose all the second occurrence time values ​​to obtain the second total time value t total,2 ;

[0021] According to the second total time value, the fine time value t of the pulse edge is calculated de =t total,2 ÷M.

[0022] In one possible design, when the time measurement system includes a plurality of the multi-cycle delay chains in parallel and a plurality of the edge position recording modules corresponding one-to-one to the plurality of the multi-cycle delay chains, the method further includes:

[0023] For each recording module in the plurality of edge position recording modules, the pulse edge and the corresponding fine time value are calculated based on the delay time of the delay device and the respective occurrence positions from the corresponding recording module;

[0024] An average value of all the fine time values ​​of the pulse edge is calculated, and the calculation result is used as the final fine time value of the pulse edge.

[0025] In a second aspect, a time measurement accuracy improvement device is provided, which is suitable for being arranged in a data processing device located in a time measurement system, wherein the time measurement system also includes a multi-cycle delay chain, an edge position recording module and an edge clock counting module, the multi-cycle delay chain is used to transmit the measured signal and is composed of M×N delay devices with the same delay time connected in series, M and N respectively represent natural numbers greater than or equal to 2, the delay time of the delay device is one Nth of the clock period of the sampling clock signal, the edge position recording module is communicatively connected to the data processing device and is used to calculate the edge position based on the sampling clock signal. The clock signal records the occurrence positions of edge delay devices in a one-to-one correspondence with each transmission cycle, wherein the edge delay device is a delay device that is transmitting the pulse edge of the measured signal during recording, the transmission cycle is a clock cycle during which the pulse edge is transmitted through the multi-cycle delay chain, and the occurrence position is a sequence number of the delay device in the M×N delay devices and arranged along the signal transmission direction. The edge clock counting module is communicatively connected to the data processing device and is used to count the number of clock cycles that the pulse edge has experienced based on the sampling clock signal;

[0026] The time measurement accuracy improving device includes a fine time value calculation unit, a coarse time value calculation unit and a time label determination unit;

[0027] The fine time value calculation unit is configured to calculate a fine time value of the pulse edge based on the delay time of the delay device and the respective occurrence positions from the edge position recording module, wherein the fine time value refers to a time value that is less than a clock period of the sampling clock signal;

[0028] The coarse time value calculation unit is used to calculate the coarse time value t of the pulse edge according to the number of clock cycles K experienced from the edge clock counting module. co =K×T, where K represents a natural number greater than M, and T represents the clock period of the sampling clock signal;

[0029] The time tag determination unit is communicatively connected to the fine time value calculation unit and the coarse time value calculation unit, respectively, for superimposing the fine time value and the coarse time value t co , and determine the time tag value of the pulse edge based on the superposition result.

[0030] In a third aspect, the present invention provides a time measurement system comprising a multi-cycle delay chain, an edge position recording module, an edge clock counting module, and a data processing device;

[0031] The multi-cycle delay chain is used to transmit the measured signal and is composed of M×N delay devices with the same delay time connected in series, wherein M and N are natural numbers greater than or equal to 2, and the delay time of the delay device is one Nth of the clock period of the sampling clock signal;

[0032] The edge position recording module is configured to record, based on the sampling clock signal, each occurrence position of an edge delay device in one-to-one correspondence with each transmission period, wherein the edge delay device is a delay device that is transmitting a pulse edge of the measured signal during recording, the transmission period is a clock period during which the pulse edge is transmitted through the multi-period delay chain, and the occurrence position is a sequence number of the delay device in the M×N delay devices, sorted along the signal transmission direction;

[0033] The edge clock counting module is configured to obtain the number of clock cycles experienced by the pulse edge based on the sampling clock signal count;

[0034] The data processing device is communicatively connected to the edge position recording module and the edge clock counting module, respectively, and is used to execute the time measurement accuracy improvement method as described in the first aspect or any possible design of the first aspect.

[0035] In one possible design, the edge position recording module includes M×N+1 D flip-flops and an edge position recorder, wherein a clock signal input terminal of the D flip-flop is used to receive the sampling clock signal, and an output terminal of the D flip-flop is electrically connected to an input terminal of the edge position recorder;

[0036] An input end of an sth D flip-flop among the M×N+1 D flip-flops is electrically connected to an output end of an sth delay device among the M×N delay devices and arranged along a signal transmission direction, and an input end of an Sth D flip-flop among the M×N+1 D flip-flops is electrically connected to an input end of the multi-cycle delay chain, wherein s represents a natural number greater than or equal to 1 and less than or equal to M×N, and S=M×N+1;

[0037] The edge position recorder is used to determine and record the occurrence positions of the edge delay device and each transmission cycle according to the data output by the M×N+1 D flip-flops, wherein the edge delay device refers to a delay device that is transmitting the pulse edge of the measured signal during recording, the transmission cycle refers to the clock cycle during the transmission of the pulse edge through the multi-cycle delay chain, and the occurrence position refers to the sequence number of the delay device among the M×N delay devices and sorted along the signal transmission direction.

[0038] In a fourth aspect, the present invention provides a data processing device, comprising a storage module, a processing module and a transceiver module that are communicatively connected in sequence, wherein the storage module is used to store computer programs, the transceiver module is used to send and receive messages, and the processing module is used to read the computer program and execute the time measurement accuracy improvement method as described in the first aspect or any possible design of the first aspect.

[0039] In a fifth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon. When the instructions are run on a computer, the method for improving time measurement accuracy as described in the first aspect or any possible design of the first aspect is executed.

[0040] In a sixth aspect, the present invention provides a computer program product, comprising a computer program or instructions, which, when executed by a computer, implements the method for improving time measurement accuracy as described in the first aspect or any possible design of the first aspect.

[0041] Beneficial effects of the above scheme:

[0042] (1) The present invention creatively provides a new solution for performing multiple time measurements based on a multi-cycle delay chain to improve measurement accuracy, which is executed by a data processing device located in a time measurement system, wherein the time measurement system also includes a multi-cycle delay chain, an edge position recording module and an edge clock counting module. The multi-cycle delay chain is used to transmit the measured signal and is composed of M×N delay devices with the same delay time connected in series. The edge position recording module is used to record the occurrence positions of the edge delay devices corresponding to each transmission cycle based on the sampling clock signal. The data processing device is used to determine the time tag value of the pulse edge according to the delay time and the occurrence positions from the edge position recording module and the number of clock cycles experienced from the edge clock counting module. Therefore, by transmitting and measuring the time of a pulse edge in multiple adjacent clock cycles in sequence, the dead time of the measured signal will not be reduced, and it is equivalent to performing multiple measurements on a pulse edge, thereby further improving the time measurement accuracy without improving the delay time accuracy of the delay device.

[0043] (2) It is also possible to perform more time measurements on the pulse edge within a specified time by means of a parallel multi-cycle delay chain, thereby further improving the accuracy of time measurement and facilitating practical application and promotion. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0045] Figure 1 A flowchart of a method for improving time measurement accuracy provided in an embodiment of the present application.

[0046] Figure 2 This is an example diagram of the combined structure of the multi-cycle delay chain and edge position recording module provided in an embodiment of the present application.

[0047] Figure 3 This is an example diagram of the calculation process of the time tag value of the pulse edge provided in an embodiment of the present application.

[0048] Figure 4 This is an example diagram of the combined structure of a parallel multi-cycle delay chain and multiple edge position recording modules provided in an embodiment of the present application.

[0049] Figure 5 This is a schematic diagram of the structure of the device for improving time measurement accuracy provided in an embodiment of the present application.

[0050] Figure 6 A schematic diagram of the structure of the time measurement system provided in an embodiment of the present application.

[0051] Figure 7 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be briefly introduced below in conjunction with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structures of the drawings is only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained based on these embodiments without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0053] It should be understood that although the terms first, second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are merely used to distinguish one object from another. For example, a first object can be referred to as a second object, and similarly, a second object can be referred to as a first object without departing from the scope of the exemplary embodiments of the present invention.

[0054] It should be understood that the term "and / or" that may appear in this document is merely a description of the association relationship between associated objects, indicating that there may be three relationships. For example, A and / or B can indicate three situations: A exists alone, B exists alone, or A and B exist at the same time. For another example, A, B and / or C can indicate the existence of any one of A, B and C or any combination of them. The term " / and" that may appear in this document describes another type of association object relationship, indicating that there may be two relationships. For example, A / and B can indicate two situations: A exists alone or A and B exist at the same time. In addition, the character " / " that may appear in this document generally indicates that the previous and next associated objects are in an "or" relationship.

[0055] Example

[0056] like Figures 1 to 3 and Figure 6 As shown, the time measurement accuracy improvement method provided in the first aspect of this embodiment can be, but is not limited to, executed by a data processing device having certain computing resources and located in a time measurement system, wherein the time measurement system further includes, but is not limited to, a multi-cycle delay chain, an edge position recording module, and an edge clock counting module, such as Figure 6 As shown; the data processing device can be, but is not limited to, conventionally implemented using chips such as FPGA / CPU and their peripheral circuits.

[0057] The multi-cycle delay chain is used to transmit the measured signal and is composed of M×N delay devices with the same delay time connected in series, wherein M and N represent natural numbers greater than or equal to 2, and the delay time of the delay device is one-Nth of the clock period of the sampling clock signal. Based on the above design, the delay effect of the multi-cycle delay chain can reach M clock periods, achieving the purpose of multi-cycle delay. The measured signal is a time measurement object, which is specifically a pulse signal, so as to measure and obtain the time tag value of the pulse edge (such as the rising edge or the falling edge of the pulse). For example, if the frequency of the sampling clock signal is 200MHz, the clock period is 5000ps, and if the delay time of the delay device is 50ps, then N can be 100. In addition, the delay device can be specifically but not limited to conventionally implemented using devices such as inverters, and the value of M can be conventionally determined after comprehensively considering the requirements for improving measurement accuracy and reducing the cost of the delay chain, for example, taking a value of 3.

[0058] The edge position recording module is communicatively connected to the data processing device and is configured to record the occurrence positions of edge delay elements corresponding to each transmission cycle based on the sampling clock signal. The edge delay element is a delay element that is transmitting a pulse edge of the measured signal at the time of recording, the transmission cycle is a clock cycle during which the pulse edge is transmitted through the multi-cycle delay chain, and the occurrence position is the sequence number of the delay element within the M×N delay elements, sorted along the signal transmission direction. The number of transmission cycles is M. Since the edge position recording module performs periodic recording based on the sampling clock signal during the transmission of the pulse edge through the multi-cycle delay chain, it can determine the edge delay element that is transmitting the pulse edge at the time of recording for each transmission cycle at the corresponding recording time and record the sequence number of the delay element within the M×N delay elements, sorted along the signal transmission direction.

[0059] like Figure 2As shown, specifically, the edge position recording module includes M×N+1 D flip-flops and an edge position recorder, wherein the clock signal input end of the D flip-flop is used to access the sampling clock signal, and the output end of the D flip-flop is electrically connected to the input end of the edge position recorder; the input end of the sth D flip-flop in the M×N+1 D flip-flops is electrically connected to the output end of the sth delay device in the M×N delay devices and sorted along the signal transmission direction, and the input end of the Sth D flip-flop in the M×N+1 D flip-flops is electrically connected to the input end of the multi-cycle delay chain, wherein s Represents a natural number greater than or equal to 1 and less than or equal to M×N, S=M×N+1; the edge position recorder is used to determine and record the edge delay and each occurrence position corresponding to each transmission cycle based on the data output by the M×N+1 D flip-flops, wherein the edge delay refers to a certain delay that is transmitting the pulse edge of the measured signal at the time of recording, the transmission cycle refers to the clock cycle during the period of transmitting the pulse edge through the multi-cycle delay chain, and the occurrence position refers to the sequence number of the certain delay in the M×N delays and sorted along the signal transmission direction. Figure 2 As shown, the output value of the Sth D flip-flop can be represented by D0, and the output of the sth D flip-flop can be represented by D s Indicates that the output value of the D flip-flop is specifically the value "0" or the value "1", so that the output data of the M×N+1 D flip-flops is a string of numbers represented by S binary values ​​(i.e., the value "0" or the value "1"). Therefore, the edge delay device that is transmitting the pulse edge when recording the string of numbers can be conventionally determined based on the position of "01" or "10" in the string of numbers, and then the sequence number of the delay device in the M×N delay devices and sorted along the signal transmission direction can be recorded. For example, the pulse edge is the rising edge of the pulse, M is 3, and N is 100. If the first string of numbers is obtained in the first transmission cycle, and in the first string of numbers there is: s=78 The corresponding binary value is "1", which is the same as D s=77 The corresponding binary value is "0", then it can be determined that the 78th delay device in the M×N delay devices and arranged along the signal transmission direction is the edge delay device that is transmitting the pulse edge when the first string of numbers is recorded, and the occurrence position corresponding to the first transmission cycle is recorded as 78; if a second string of numbers is obtained in the second transmission cycle, and the second string of numbers has: s=177 The corresponding binary value is "1", which is the same as D s=176The corresponding binary value is "0", then it can be determined that the 177th delay device in the M×N delay devices and arranged along the signal transmission direction is the edge delay device that is transmitting the pulse edge when the second string of numbers is recorded, and the occurrence position corresponding to the second transmission cycle is recorded as 177; if a third string of numbers is obtained in the third transmission cycle, and the third string of numbers has: s=277 The corresponding binary value is "1", which is the same as D s=276 The corresponding binary value is "0", then it can be determined that the 277th delay device among the M×N delay devices and arranged along the signal transmission direction is the edge delay device that is transmitting the pulse edge when recording the second string of numbers, and the occurrence position corresponding to the third transmission cycle is recorded as 277.

[0060] The edge clock counting module is communicatively connected to the data processing device and is configured to obtain the number of clock cycles that have passed through the pulse edge based on the sampling clock signal. The number of clock cycles that have passed through is used to calculate the rough time value of the pulse edge, which can be conventionally implemented based on an existing counter.

[0061] like Figure 1 As shown, the method for improving time measurement accuracy includes but is not limited to the following steps S1 to S3.

[0062] S1. Calculate the fine time value of the pulse edge based on the delay time of the delay device and the respective occurrence positions from the edge position recording module, wherein the fine time value refers to a time value that is less than the clock period of the sampling clock signal.

[0063] In step S1, the fine time value is the time value within one sampling clock. The specific calculation process of the fine time value of the pulse edge can be, but is not limited to, the following method (A) or (B).

[0064] (A) First, for each occurrence position from the edge position recording module, the corresponding first occurrence time value t is calculated according to the delay time τ of the delay device and the corresponding sequence number n. n,1 =n×τ; then superimpose all the first occurrence time values ​​to obtain the first total time value t total,1 Finally, according to the first total time value, the fine time value of the pulse edge is calculated Wherein, m represents a natural number greater than or equal to 1 and less than M, and T represents the clock period of the sampling clock signal. Based on the above example: the delay time of the delay device is 50ps, M is 3, N is 100, the occurrence position corresponding to the first transmission cycle is 78, the occurrence position corresponding to the second transmission cycle is 177, and the occurrence position corresponding to the third transmission cycle is 277. For these three occurrence positions, the corresponding first occurrence time values ​​can be calculated as follows: 78×50ps=3900ps, 177×50ps=8850ps, and 277×50ps=13850ps, respectively. In this way, these three first occurrence time values ​​can be superimposed to calculate the first total time value t total,1 =3900ps+8850ps+13850ps=26600ps, and then the fine time value t of the pulse edge can be calculated de =(26600ps-3×5000ps)÷3≈3867ps.

[0065] (B) First, for each occurrence position from the edge position recording module, calculate the corresponding second occurrence time value according to the delay time length τ of the delay device and the corresponding sequence number n in, represents the period number of the corresponding transmission period after the pulse edge enters the multi-period delay chain, T represents the clock period of the sampling clock signal; superimpose all the second occurrence time values ​​to obtain the second total time value t total,2 According to the second total time value, the fine time value t of the pulse edge is calculated de =t total,2 Based on the above example: the delay time of the delay device is 50ps, M is 3, N is 100, the occurrence position corresponding to the first transmission cycle is 78, the occurrence position corresponding to the second transmission cycle is 177, and the occurrence position corresponding to the third transmission cycle is 277. For these three occurrence positions, the corresponding second occurrence time values ​​can be calculated as follows: 78×50ps=3900ps (at this time ), 177×50ps-5000ps=3850ps (at this time ) and 277×50ps-2×5000ps=3850ps (at this time ), the three second occurrence time values ​​can be superimposed to calculate the second total time value t total,2 =3900ps+3850ps+3850ps=11600ps, and then the fine time value t of the pulse edge can be calculated de =11600ps÷3≈3867ps.

[0066] S2. Calculate the rough time value t of the pulse edge based on the number of clock cycles K experienced from the edge clock counting module co =K×T, where K represents a natural number greater than M, and T represents the clock period of the sampling clock signal.

[0067] In step S2, since the coarse time value is in units of clock cycles, its time granularity is significantly coarser than that of the aforementioned fine time value.

[0068] S3. Superimpose the fine time value and the coarse time value t co , and determine the time tag value of the pulse edge based on the superposition result.

[0069] In step S3, since the number of clock cycles that the pulse edge has experienced is obtained based on the counting of the sampling clock signal, when the counting start time is zero, the superposition result can be directly used as the time tag value of the pulse edge, for example, Figure 3 As shown (here K=i+4,…,i+6, i represents a natural number greater than or equal to 1), for example, a pulse edge appears in the clock cycle numbered N0. When the pulse edge is transmitted on the multi-cycle delay chain, the occurrence position recorded in the first clock cycle (numbered N1) is 78, the occurrence position recorded in the second clock cycle (numbered N2) is 177, and the position recorded in the third clock (numbered N3) is 277. Then, in the next clock cycle (numbered N4), the time tag value of the pulse edge can be calculated (its time granularity is one-third of the delay time of the delay device); assuming that there is a pulse edge in the clock cycle numbered N1, the time tag value of the pulse edge can be calculated in the clock cycle numbered N5; and so on, the purpose of improving the time measurement accuracy without increasing the dead time value can be achieved.

[0070] Based on the time measurement accuracy improvement method described in steps S1 to S3 above, a new solution for improving measurement accuracy by performing multiple time measurements based on a multi-cycle delay chain is provided. The solution is executed by a data processing device within a time measurement system. The time measurement system further includes a multi-cycle delay chain, an edge position recording module, and an edge clock counting module. The multi-cycle delay chain is used to transmit a measured signal and is composed of M×N delays connected in series with the same delay duration. The edge position recording module is used to record the occurrence positions of the edge delays in a one-to-one correspondence with each transmission cycle based on a sampling clock signal. The data processing device is used to determine the time tag value of a pulse edge based on the delay duration, the occurrence positions of the edge position recording module, and the number of elapsed clock cycles from the edge clock counting module. Thus, by sequentially transmitting and measuring the time of a pulse edge within multiple adjacent clock cycles, the dead time of the measured signal is not reduced, and the same method is used to perform multiple measurements on a single pulse edge. This further improves time measurement accuracy without increasing the delay duration accuracy of the delays, facilitating practical application and promotion.

[0071] Based on the technical solution of the first aspect mentioned above, this embodiment further provides a possible design for further improving the time measurement accuracy. That is, when the time measurement system includes multiple parallel multi-cycle delay chains and multiple edge position recording modules corresponding one-to-one to the multiple multi-cycle delay chains, the method further includes but is not limited to the following steps S100 to S200.

[0072] S100. For each recording module in the plurality of edge position recording modules, calculate the pulse edge and the corresponding fine time value according to the delay time of the delay device and the respective occurrence positions from the corresponding recording module.

[0073] In the step S100, the combination structure of the plurality of multi-cycle delay chains and the plurality of edge position recording modules is as follows: Figure 4 As shown, the measured signal is transmitted in parallel in a plurality of the multi-cycle delay chains, so that for each recording module, the pulse edge and the corresponding fine time value can be independently calculated based on the aforementioned step S1.

[0074] S200. Calculate the average value of all the fine time values ​​of the pulse edge, and use the calculation result as the final fine time value of the pulse edge.

[0075] In step S200, the final fine time value is used to compare with the coarse time value t co The pulse edges are superimposed to determine the time tag value of the pulse edge based on the superposition result.

[0076] Based on the aforementioned possible design 1, it is also possible to perform more time measurements on the pulse edge within the specified time by means of a parallel multi-cycle delay chain, thereby further improving the accuracy of the time measurement.

[0077] like Figure 5 As shown, the second aspect of this embodiment provides a virtual device for implementing the time measurement accuracy improvement method described in the first aspect or possible design one, which is suitable for being arranged in a data processing device located in a time measurement system, wherein the time measurement system also includes a multi-cycle delay chain, an edge position recording module and an edge clock counting module, the multi-cycle delay chain is used to transmit the measured signal and is composed of M×N delay devices with the same delay time connected in series, M and N respectively represent natural numbers greater than or equal to 2, the delay time of the delay device is one Nth of the clock period of the sampling clock signal, and the edge position recording module is communicatively connected to the data processing device. The processing device is configured to record, based on the sampling clock signal, each occurrence position of an edge delay device corresponding one-to-one to each transmission period, wherein the edge delay device is a delay device that is transmitting a pulse edge of the measured signal during recording, the transmission period is a clock period during which the pulse edge is transmitted through the multi-period delay chain, and the occurrence position is a sequence number of the delay device in the M×N delay devices, arranged along the signal transmission direction. The edge clock counting module is communicatively connected to the data processing device and is configured to count, based on the sampling clock signal, the number of clock periods that the pulse edge has experienced.

[0078] The time measurement accuracy improving device includes a fine time value calculation unit, a coarse time value calculation unit and a time label determination unit;

[0079] The fine time value calculation unit is configured to calculate a fine time value of the pulse edge based on the delay time of the delay device and the respective occurrence positions from the edge position recording module, wherein the fine time value refers to a time value that is less than a clock period of the sampling clock signal;

[0080] The coarse time value calculation unit is used to calculate the coarse time value t of the pulse edge according to the number of clock cycles K experienced from the edge clock counting module. co =K×T, where K represents a natural number greater than M, and T represents the clock period of the sampling clock signal;

[0081] The time tag determination unit is communicatively connected to the fine time value calculation unit and the coarse time value calculation unit, respectively, for superimposing the fine time value and the coarse time value t co , and determine the time tag value of the pulse edge based on the superposition result.

[0082] The working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment can be referred to the time measurement accuracy improvement method described in the first aspect or possible design one, and will not be repeated here.

[0083] like Figure 6 As shown, the third aspect of this embodiment provides a physical system for implementing the time measurement accuracy improvement method described in the first aspect or possible design one, including a multi-cycle delay chain, an edge position recording module, an edge clock counting module and a data processing device;

[0084] The multi-cycle delay chain is used to transmit the measured signal and is composed of M×N delay devices with the same delay time connected in series, wherein M and N are natural numbers greater than or equal to 2, and the delay time of the delay device is one Nth of the clock period of the sampling clock signal;

[0085] The edge position recording module is configured to record, based on the sampling clock signal, each occurrence position of an edge delay device in one-to-one correspondence with each transmission period, wherein the edge delay device is a delay device that is transmitting a pulse edge of the measured signal during recording, the transmission period is a clock period during which the pulse edge is transmitted through the multi-period delay chain, and the occurrence position is a sequence number of the delay device in the M×N delay devices, sorted along the signal transmission direction;

[0086] The edge clock counting module is configured to obtain the number of clock cycles experienced by the pulse edge based on the sampling clock signal count;

[0087] The data processing device is communicatively connected to the edge position recording module and the edge clock counting module, respectively, and is used to execute the time measurement accuracy improvement method as described in the first aspect or possible design one.

[0088] In one possible design, the edge position recording module includes M×N+1 D flip-flops and an edge position recorder, wherein a clock signal input terminal of the D flip-flop is used to receive the sampling clock signal, and an output terminal of the D flip-flop is electrically connected to an input terminal of the edge position recorder;

[0089] An input end of an sth D flip-flop among the M×N+1 D flip-flops is electrically connected to an output end of an sth delay device among the M×N delay devices and arranged along a signal transmission direction, and an input end of an Sth D flip-flop among the M×N+1 D flip-flops is electrically connected to an input end of the multi-cycle delay chain, wherein s represents a natural number greater than or equal to 1 and less than or equal to M×N, and S=M×N+1;

[0090] The edge position recorder is used to determine and record the occurrence positions of the edge delay device and each transmission cycle according to the data output by the M×N+1 D flip-flops, wherein the edge delay device refers to a delay device that is transmitting the pulse edge of the measured signal during recording, the transmission cycle refers to the clock cycle during the transmission of the pulse edge through the multi-cycle delay chain, and the occurrence position refers to the sequence number of the delay device among the M×N delay devices and sorted along the signal transmission direction.

[0091] The working process, working details and technical effects of the aforementioned system provided in the third aspect of this embodiment can be referred to the time measurement accuracy improvement method described in the first aspect or possible design one, and will not be repeated here.

[0092] like Figure 7 As shown, the fourth aspect of this embodiment provides a data processing device for executing the time measurement accuracy improvement method as described in the first aspect or possible design one, including a storage module, a processing module and a transceiver module that are sequentially connected in communication, wherein the storage module is used to store computer programs, the transceiver module is used to send and receive messages, and the processing module is used to read the computer program and execute the time measurement accuracy improvement method as described in the first aspect or possible design one. For example, the storage module may include, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a flash memory, a first-in-first-out memory (FIFO) and / or a first-in-last-out memory (FILO), etc.; the processing module may include, but is not limited to, a microprocessor of the STM32F105 series. In addition, the data processing device may also include, but is not limited to, a power module, a display screen and other necessary components.

[0093] The working process, working details and technical effects of the aforementioned data processing device provided in the fourth aspect of this embodiment can be referred to the time measurement accuracy improvement method described in the first aspect or possible design one, and will not be repeated here.

[0094] A fifth aspect of this embodiment provides a computer-readable storage medium storing instructions including the method for improving time measurement accuracy as described in the first aspect or possible design one, that is, the computer-readable storage medium stores instructions that, when executed on a computer, execute the method for improving time measurement accuracy as described in the first aspect or possible design one. The computer-readable storage medium refers to a carrier for storing data, and may include, but is not limited to, computer-readable storage media such as a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash drive, and / or a memory stick. The computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable device.

[0095] The working process, working details and technical effects of the aforementioned computer-readable storage medium provided in the fifth aspect of this embodiment can be referred to the method for improving time measurement accuracy as described in the first aspect or possible design one, and will not be repeated here.

[0096] A sixth aspect of this embodiment provides a computer program product, including a computer program or instructions, which, when executed by a computer, implements the method for improving time measurement accuracy as described in the first aspect or possible design 1. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.

[0097] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of protection of the present invention.

Claims

1. A method for improving time measurement accuracy, characterized in that: The method is executed by a data processing device within a time measurement system, wherein the time measurement system further comprises a multi-cycle delay chain, an edge position recording module, and an edge clock counting module. The multi-cycle delay chain is used to transmit a measured signal and is composed of M×N delay devices connected in series with the same delay length, where M and N are natural numbers greater than or equal to 2, and the delay length of each delay device is one-Nth of a clock period of a sampling clock signal. The edge position recording module is communicatively connected to the data processing device and is used to record, based on the sampling clock signal, the occurrence positions of each edge delay device corresponding to each transmission period. The edge delay device is a delay device that is transmitting a pulse edge of the measured signal during recording. The transmission period is a clock period during which the pulse edge is transmitted through the multi-cycle delay chain. The occurrence position is a sequence number of the delay device within the M×N delay devices, sorted along the signal transmission direction. The edge clock counting module is communicatively connected to the data processing device and is used to count, based on the sampling clock signal, the number of clock periods that the pulse edge has experienced. The method for improving time measurement accuracy includes: Calculating a fine time value of the pulse edge according to the delay time of the delay device and the respective occurrence positions from the edge position recording module, wherein the fine time value refers to a time value that is less than a clock period of the sampling clock signal; The rough time value t of the pulse edge is calculated based on the number of clock cycles K that have passed from the edge clock counting module. co =K×T, where K represents a natural number greater than M, and T represents the clock period of the sampling clock signal; Superimpose the fine time value and the coarse time value t co , and determine the time tag value of the pulse edge based on the superposition result.

2. The method for improving time measurement accuracy according to claim 1, wherein: Calculating the fine time value of the pulse edge according to the delay time of the delay device and the respective occurrence positions from the edge position recording module includes: For each occurrence position from the edge position recording module, the corresponding first occurrence time value t is calculated according to the delay time τ of the delay device and the corresponding sequence number n. n,1 =n×τ; Superimpose all the first occurrence time values ​​to obtain the first total time value t total,1 ; According to the first total time value, the fine time value of the pulse edge is calculated Wherein, m represents a natural number greater than or equal to 1 and less than M, and T represents a clock period of the sampling clock signal.

3. The method for improving time measurement accuracy according to claim 1, wherein: Calculating the fine time value of the pulse edge according to the delay time of the delay device and the respective occurrence positions from the edge position recording module includes: For each occurrence position from the edge position recording module, the corresponding second occurrence time value is calculated according to the delay time τ of the delay device and the corresponding sequence number n. in, represents the period number of the corresponding transmission period after the pulse edge is transmitted into the multi-period delay chain, and T represents the clock period of the sampling clock signal; Superimpose all the second occurrence time values ​​to obtain the second total time value t total,2 ; According to the second total time value, the fine time value t of the pulse edge is calculated de =t total,2 ÷M.

4. The method for improving time measurement accuracy according to claim 1, wherein: When the time measurement system includes a plurality of the multi-cycle delay chains in parallel and a plurality of the edge position recording modules corresponding one-to-one to the plurality of the multi-cycle delay chains, the method further includes: For each recording module in the plurality of edge position recording modules, the pulse edge and the corresponding fine time value are calculated based on the delay time of the delay device and the respective occurrence positions from the corresponding recording module; An average value of all the fine time values ​​of the pulse edge is calculated, and the calculation result is used as the final fine time value of the pulse edge.

5. A device for improving time measurement accuracy, characterized in that: Suitable for being arranged in a data processing device located in a time measurement system, wherein the time measurement system further comprises a multi-cycle delay chain, an edge position recording module, and an edge clock counting module. The multi-cycle delay chain is used to transmit a measured signal and is composed of M×N delay devices having the same delay length connected in series, where M and N respectively represent natural numbers greater than or equal to 2, and the delay length of the delay device is one-Nth of a clock period of a sampling clock signal. The edge position recording module is communicatively connected to the data processing device and is used to record, based on the sampling clock signal, the occurrence positions of the edge delay devices corresponding to each transmission cycle. The edge delay device is a delay device that is transmitting a pulse edge of the measured signal at the time of recording. The transmission cycle is a clock cycle during which the pulse edge is transmitted through the multi-cycle delay chain. The occurrence position is the sequence number of the delay device in the M×N delay devices, sorted along the signal transmission direction. The edge clock counting module is communicatively connected to the data processing device and is used to count, based on the sampling clock signal, the number of clock cycles that the pulse edge has experienced. The time measurement accuracy improving device includes a fine time value calculation unit, a coarse time value calculation unit and a time label determination unit; The fine time value calculation unit is configured to calculate a fine time value of the pulse edge based on the delay time of the delay device and the respective occurrence positions from the edge position recording module, wherein the fine time value refers to a time value that is less than a clock period of the sampling clock signal; The coarse time value calculation unit is used to calculate the coarse time value t of the pulse edge according to the number of clock cycles K experienced from the edge clock counting module. co =K×T, where K represents a natural number greater than M, and T represents the clock period of the sampling clock signal; The time tag determination unit is communicatively connected to the fine time value calculation unit and the coarse time value calculation unit, respectively, for superimposing the fine time value and the coarse time value t co , and determine the time tag value of the pulse edge based on the superposition result.

6. A time measurement system, characterized in that: It includes a multi-cycle delay chain, an edge position recording module, an edge clock counting module and a data processing device; The multi-cycle delay chain is used to transmit the measured signal and is composed of M×N delay devices with the same delay time connected in series, wherein M and N are natural numbers greater than or equal to 2, and the delay time of the delay device is one Nth of the clock period of the sampling clock signal; The edge position recording module is configured to record, based on the sampling clock signal, each occurrence position of an edge delay device in one-to-one correspondence with each transmission period, wherein the edge delay device is a delay device that is transmitting a pulse edge of the measured signal during recording, the transmission period is a clock period during which the pulse edge is transmitted through the multi-period delay chain, and the occurrence position is a sequence number of the delay device in the M×N delay devices, sorted along the signal transmission direction; The edge clock counting module is configured to obtain the number of clock cycles experienced by the pulse edge based on the sampling clock signal count; The data processing device is communicatively connected to the edge position recording module and the edge clock counting module, respectively, and is used to execute the time measurement accuracy improvement method according to any one of claims 1 to 4.

7. The time measurement system according to claim 6, wherein: The edge position recording module includes M×N+1 D flip-flops and an edge position recorder, wherein the clock signal input end of the D flip-flop is used to receive the sampling clock signal, and the output end of the D flip-flop is electrically connected to the input end of the edge position recorder; An input end of an sth D flip-flop among the M×N+1 D flip-flops is electrically connected to an output end of an sth delay device among the M×N delay devices and arranged along a signal transmission direction, and an input end of an Sth D flip-flop among the M×N+1 D flip-flops is electrically connected to an input end of the multi-cycle delay chain, wherein s represents a natural number greater than or equal to 1 and less than or equal to M×N, and S=M×N+1; The edge position recorder is used to determine and record the occurrence positions of the edge delay device and each transmission cycle according to the data output by the M×N+1 D flip-flops, wherein the edge delay device refers to a delay device that is transmitting the pulse edge of the measured signal during recording, the transmission cycle refers to the clock cycle during the transmission of the pulse edge through the multi-cycle delay chain, and the occurrence position refers to the sequence number of the delay device among the M×N delay devices and sorted along the signal transmission direction.

8. A data processing device, characterized in that: The method comprises a storage module, a processing module and a transceiver module which are communicatively connected in sequence, wherein the storage module is used to store a computer program, the transceiver module is used to send and receive messages, and the processing module is used to read the computer program and execute the time measurement accuracy improvement method according to any one of claims 1 to 4.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed on the computer, the method for improving time measurement accuracy as described in any one of claims 1 to 4 is executed.

10. A computer program product comprising a computer program or instructions, characterized in that When the computer program or the instruction is executed by a computer, the method for improving time measurement accuracy according to any one of claims 1 to 4 is implemented.