Time-to-digital conversion device, time-to-digital conversion method, and chip

By designing a time-to-digital conversion device that includes signal conversion, delay chain, register, edge detection and calculation modules, the problem of complexity of the double-chain TDC circuit and measurement failure of the single-chain TDC circuit is solved, and simplified circuit structure and efficient measurement are achieved.

CN118625632AActive Publication Date: 2024-09-10SHANGHAI JINGJI SEMICON TECH CO LTD

Patent Information

Application Number
CN202410858624.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-10
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

The existing dual-chain TDC circuit has a complex structure and consumes resources. The single-chain TDC circuit cannot measure when the interval between the timing start signal and the timing stop signal is too large.

Method used

Design a time-to-digital conversion device, including a signal conversion module, a delay chain module, a register module, an edge detection module and a calculation module. By converting the timing start signal and the timing stop signal into measurement pulse signals, and using the delay chain module, The register module and edge detection module collect and detect the delay status of the pulse signal, and calculate the time interval of measuring the pulse signal.

Benefits of technology

It achieves the simplification of the circuit structure, saves resources and costs, can effectively measure pulse signals with small pulse widths, and solves the problem of measurement failure caused by excessive delay intervals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625632A
    Figure CN118625632A
Patent Text Reader

Abstract

The invention discloses a time-to-digital conversion device, a time-to-digital conversion method and a chip, in the time-to-digital conversion device, a timing start signal and a timing stop signal are converted into a measurement pulse signal by using a signal conversion module, the measurement pulse signal is delayed by using a delay chain module, and a signal state is temporarily stored by using a register module; the edge detection module is used for detecting the rising edge and the falling edge of the measurement pulse signal and determining the stage number of a rising delay unit corresponding to the rising edge and the stage number of a falling delay unit corresponding to the falling edge; and calculating the time interval between the rising edge and the falling edge by using a calculation module according to the detected period number of the clock signal used between the rising edge and the falling edge in the measurement pulse signal, the first delay time corresponding to the stage number of the rising delay unit and the second delay time corresponding to the stage number of the falling delay unit. The circuit is simple in structure, saves a large amount of resources or cost, and can solve the problem of measurement failure caused by overlarge delay interval of two signals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of digital measurement of time quantity, and in particular relates to a time-to-digital conversion device, a time-to-digital conversion method, and a chip. Background Art

[0002] Time to Digital Converter (TDC) is an instrument that can use circuits to measure the time interval between two pulses and convert the time signal representing the time interval into a digital signal. It can solve the problem of measuring ultra-short time intervals. Therefore, time to digital converters are widely used in scientific research fields such as medical imaging instruments, laser rangefinders, ultrasonic flow meters, ultrasonic density meters, ultrasonic thickness meters, hysteresis and expansion positioning, particle collision time, quantum optics, and physical quantities (such as capacitance, resistance, weight, density, pressure, etc.) in sensor applications. The measurement after conversion into frequency and phase difference. Among them, in the time to digital converter, the accuracy that can be achieved in time measurement is the key.

[0003] The most commonly used TDC circuit for time measurement in the prior art is a dual-chain TDC circuit. Generally, a dual-chain TDC circuit includes two single-chain TDC circuits, and the first single-chain TDC circuit includes a first delay chain module and a first register module, wherein the first delay chain module is used to receive a timing start signal (which can be identified as start), and the first register module is used to receive a delayed timing start signal and a clock signal, and the first register module collects and temporarily stores the level state corresponding to the timing start signal passing through the first delay chain module according to each clock signal. The second single-chain TDC circuit includes a second delay chain module and a second register module, wherein the second delay chain module is used to receive a timing stop signal (which can be identified as stop), and the second register module is used to receive a delayed timing stop signal and a clock signal, and the second register module collects and temporarily stores the level state corresponding to the timing end signal passing through the first delay chain module according to each clock signal.

[0004] In the dual-chain TDC circuit, the first single-chain TDC circuit is used to test the time T1 when the timing start signal starts, and the second single-chain TDC circuit is used to test the time T2 when the timing stop signal starts. The time difference between the timing start signal and the timing stop signal can be obtained by subtracting the time T2 when the timing stop signal starts from the time T1 when the timing start signal starts. The dual-chain TDC circuit requires two TDC chains and related measurement circuits, and has a complex structure and consumes resources.

[0005] In addition, the industry has also improved the aforementioned dual-chain TDC circuit and proposed a technology for a single-chain TDC circuit.

[0006] The single-chain TDC circuit includes a delay chain module and a register module, wherein the delay chain module is used to receive a timing start signal (which can be identified as start), the register module is used to receive a delayed timing start signal and a timing stop signal (which can be identified as stop), and the register module collects and temporarily stores the level state of the delayed timing start signal according to each timing stop signal.

[0007] In a single-chain TDC circuit, the timing start signal is connected to the delay module, and the start of the timing start signal is locked with the start of the timing stop signal, so as to measure the time interval between the start time of the timing start signal and the start time of the timing stop signal. However, in a single-chain TDC circuit, due to the limited number of delay units in the delay chain module, in some cases, if the interval between the start time of the timing start signal and the start time of the timing stop signal is too large, then when the timing start signal has left the delay chain module but the timing stop signal has not arrived, it will lead to the inability to measure. Summary of the invention

[0008] The purpose of the present invention is to disclose a time-to-digital conversion device, a time-to-digital conversion method, and a chip, which are used to solve the problems of resource consumption or measurement failure in the existing timekeeping.

[0009] In a first aspect, the present invention discloses a time-to-digital conversion device, comprising: a signal conversion module, a delay chain module, a storage module, an edge detection module and a calculation module;

[0010] The timing start signal and the timing stop signal are converted into a measurement pulse signal by a signal conversion module, and the time interval between the time when the timing start signal appears and the time when the timing stop signal appears is consistent with the pulse width of the measurement pulse signal;

[0011] A delay chain module is electrically connected to the signal conversion module, and the delay chain module includes a plurality of electrically connected delay units; the plurality of electrically connected delay units are used to sequentially delay the received measurement pulse signal;

[0012] A register module is electrically connected to the delay chain module, and the register module includes a plurality of electrically connected registers, the registers correspond to the delay units, and the registers collect and temporarily store the signal state of the corresponding delay unit according to each clock signal, and the signal state represents the delay state of the measured pulse signal passing through the delay unit under the current clock signal;

[0013] an edge detection module, electrically connected to the register module, the edge detection module detects the rising edge and the falling edge of the measurement pulse signal according to the temporarily stored signal state obtained from the register module, and determines the number of rising delay units corresponding to the rising edge and the number of falling delay units corresponding to the falling edge in the measurement pulse signal according to the detection results of the rising edge and the falling edge of the measurement pulse signal; and

[0014] The computing module is electrically connected to the edge detection module. The computing module detects the number of cycles of the clock signal between the rising edge of the measuring pulse signal and the falling edge of the measuring pulse signal according to the edge detection module, and inquires about the first delay time corresponding to the determined number of rising delay unit levels and the second delay time corresponding to the number of falling delay unit levels. The computing module calculates the time interval between the rising edge and the falling edge in the measuring pulse signal according to the cycle of the clock signal, the number of cycles, the first delay time and the second delay time.

[0015] In a possible embodiment, the signal conversion module includes a latch unit; the latch unit includes an RS latch circuit.

[0016] In a possible embodiment, the signal conversion module includes a latch unit, the latch unit includes an OR gate, an inverter, and a transmission gate circuit; the inverter includes a first inverter, a second inverter, and a third inverter, and the transmission gate includes a first transmission gate and a second transmission gate; the first input end of the OR gate receives a timing start signal, the second input end of the OR gate receives a timing stop signal, the output end of the OR gate is connected to the input end of the first inverter, and the output end of the OR gate is connected to the first control end of the first transmission gate and the second control end of the second transmission gate, the output end of the first inverter is connected to the second control end of the first transmission gate and the first control end of the second transmission gate, the timing stop signal is input to the input end of the first transmission gate, the output end of the first transmission gate is connected to the input end of the second transmission gate and the input end of the second inverter, the output end of the second inverter is connected to the input end of the third inverter, and the output end of the second transmission gate is connected to the output end of the third inverter.

[0017] In a possible embodiment, the edge detection module includes a rising edge detection unit and a falling edge detection unit; the rising edge detection unit detects whether the temporarily stored signal state obtained from the storage module has a first conversion state, when there is the first conversion state, the signal state includes a rising edge, and a first mark is used to mark the signal position corresponding to the rising edge of the signal state; the falling edge detection unit detects whether the temporarily stored signal state obtained from the storage module has a second conversion state, when there is the second conversion state, the signal state includes a falling edge, and a second mark is used to mark the signal position corresponding to the falling edge of the signal state, wherein the first conversion state and the second conversion state respectively represent different signal change states.

[0018] In a possible embodiment, the edge detection module also includes a decoding unit, and the calculation module is electrically connected to the decoding unit. The decoding unit queries the number of delay units corresponding to the first mark as the number of rising delay units corresponding to the rising edge in the measurement pulse signal, and queries the number of delay units corresponding to the second mark as the number of falling delay units corresponding to the falling edge in the measurement pulse signal.

[0019] In a possible embodiment, the time-to-digital conversion device also includes: a calibration module and a delay time storage module; the calibration module is electrically connected to the edge detection module, and the calibration module measures the delay time of each delay unit in the delay chain module; the delay time storage module is electrically connected to the calibration module and the calculation module, and the delay time storage module stores the measurement results of the delay time of each delay unit in the delay chain module by the calibration module, and the calculation module queries the first delay time corresponding to the determined rising delay unit level and the second delay time corresponding to the falling delay unit level from the delay time storage module.

[0020] In a possible embodiment, the storage address of the delay time storage module corresponds to the number of delay units, wherein the Nth storage address in the delay time storage module stores the delay time corresponding to the Nth delay unit level, the delay time corresponding to the Nth delay unit level is the sum of the delay times from the 1st delay unit to the Nth delay unit, and N is a positive integer greater than or equal to 1.

[0021] In a possible embodiment, the calculation module includes a clock counting unit. When the edge detection module detects the rising edge of the measurement pulse signal, the clock counting unit starts and records the period of the clock signal. When the edge detection module detects the falling edge of the measurement pulse signal, the clock counting unit stops, and the period of the clock signal recorded by the clock counting unit is used as the period number n of the clock signal.

[0022] The time interval between the rising edge and the falling edge of the measured pulse signal is calculated based on the following formula:

[0023] T=n*T clk +ΔT1-ΔT2

[0024] Where T represents the time interval between the rising edge and the falling edge of the measured pulse signal, T clk represents the period of each clock signal, and the period of the clock signal T clk Less than the sum of the delay times of the delay chain modules, n represents the number of cycles of the clock signal used between the edge detection module detecting the rising edge of the measurement pulse signal and detecting the falling edge of the measurement pulse signal, and n≥0, ΔT1 represents the first delay time corresponding to the number of rising delay unit levels, and ΔT2 represents the second delay time corresponding to the number of falling delay unit levels.

[0025] In a second aspect, the present invention discloses a time-to-digital conversion method, comprising the following steps:

[0026] The signal conversion module converts the timing start signal and the timing stop signal into a measurement pulse signal, and the time interval between the time when the timing start signal appears and the time when the timing stop signal appears is consistent with the pulse width of the measurement pulse signal;

[0027] The multiple delay units electrically connected in the delay chain module sequentially delay the received measurement pulse signal, and the multiple registers electrically connected in the register module collect and temporarily store the signal state of the corresponding delay unit according to each clock signal, and the signal state represents the delay state of the measurement pulse signal passing through the delay unit under the current clock signal;

[0028] The edge detection module detects the rising edge and the falling edge of the measurement pulse signal according to the temporarily stored signal state obtained from the register module; and according to the detection results of the rising edge and the falling edge of the measurement pulse signal, determines the number of rising delay units corresponding to the rising edge and the number of falling delay units corresponding to the falling edge in the measurement pulse signal; and

[0029] The calculation module detects the number of cycles of the clock signal between the rising edge of the measuring pulse signal and the falling edge of the measuring pulse signal according to the edge detection module, and queries the first delay time corresponding to the determined number of rising delay unit levels and the second delay time corresponding to the number of falling delay unit levels. The time interval between the rising edge and the falling edge in the measuring pulse signal is calculated according to the cycle of the clock signal, the number of cycles, the first delay time and the second delay time.

[0030] In a third aspect, the present invention discloses a chip, comprising the time-to-digital conversion device as described above.

[0031] The invention discloses a time-to-digital conversion device, a time-to-digital conversion method, and a chip. The time conversion device comprises a signal conversion module, a delay chain module, a register module, an edge detection module, and a calculation module. The signal conversion module is used to convert a timing start signal and a timing stop signal into a measurement pulse signal. The delay chain module is used to delay the measurement pulse signal. The register module is used to collect and temporarily store the signal state of the corresponding delay unit. The edge detection module is used to detect the rising edge and the falling edge of the measurement pulse signal. According to the detection result, the number of rising delay unit levels corresponding to the rising edge and the number of falling delay unit levels corresponding to the falling edge in the measurement pulse signal are determined. According to the number of cycles of the clock signal between the rising edge and the falling edge detected in the measurement pulse signal by the edge detection module, the calculation module is used to query the first delay time corresponding to the rising delay unit level and the second delay time corresponding to the falling delay unit level, thereby calculating the time interval between the rising edge and the falling edge in the measurement pulse signal. In this way, the technical solution of the present application can have a simple circuit structure compared to the conventional dual-delay chain time-to-digital conversion circuit, and there is no need to build a complex dual-chain delay chain circuit structure, which can save a lot of resources or costs; and compared to the original single delay chain time-to-digital conversion circuit, it can not only measure measurement pulse signals with a smaller pulse width, but also solve the problem of measurement failure of two signals due to excessive delay interval. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The preferred implementation modes will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of the present invention.

[0033] Figure 1 Shown is a schematic structural diagram of a time-to-digital conversion device in one embodiment of the present invention.

[0034] Figure 2 Display as Figure 1 FIG. 1 is a circuit diagram of a signal conversion module in one embodiment.

[0035] Figure 3 Display as Figure 1 FIG. 1 is a circuit diagram of a signal conversion module in another embodiment.

[0036] Figure 4 Display as Figure 3 The timing diagram of each signal in the signal conversion module is shown.

[0037] Figure 5 FIG. 4 is a circuit diagram of a delay chain module in one embodiment.

[0038] Figure 6 FIG. 4 is a schematic diagram showing the structure of a time-to-digital conversion device according to another embodiment of the present invention.

[0039] Figure 7 Shown is a schematic diagram of the structure of an edge detection module in one embodiment.

[0040] Figure 8 It is a schematic diagram of the structure of an edge detection module in another embodiment.

[0041] Figures 9 to 12 Shown is a status diagram of different measurement stages during the measurement process.

[0042] Fig.13 FIG. 4 is a flow chart of a time-to-digital conversion method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0043] The technical solution of the present invention is further described in detail below in conjunction with the drawings and specific embodiments of the specification. Unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as those commonly understood by technicians in the technical field of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The "and / or" used herein includes any and all combinations of one or more related listed items.

[0044] In the prior art, dual-chain TDC circuits are mostly used, but the dual-chain TDC circuit requires the use of two TDC chains and related measurement circuits, which has a complex structure and consumes resources. In the existing single-chain TDC circuit, since the timing start signal and the timing stop signal are directly connected to the single-chain TDC circuit, measurement cannot be performed when the time interval between the timing start signal and the timing stop signal is too large.

[0045] In view of the various deficiencies of the above-mentioned existing solutions, the inventors of the present invention have proposed an improvement plan for the existing technology.

[0046] The present invention discloses a time-to-digital conversion device, comprising: a signal conversion module, a delay chain module, a storage module, an edge detection module and a calculation module.

[0047] The timing start signal and the timing stop signal are converted into a measurement pulse signal by a signal conversion module, and the time interval between the time when the timing start signal appears and the time when the timing stop signal appears is consistent with the pulse width of the measurement pulse signal.

[0048] The delay chain module is electrically connected to the signal conversion module. The delay chain module includes a plurality of electrically connected delay units. The plurality of electrically connected delay units are used to sequentially delay the received measurement pulse signals.

[0049] The register module is electrically connected to the delay chain module. The register module includes multiple electrically connected registers. The registers correspond to the delay units. The registers collect and temporarily store the signal state of the corresponding delay unit according to each clock signal. The signal state represents the delay state of the measured pulse signal passing through the delay unit under the current clock signal.

[0050] The edge detection module is electrically connected to the register module. The edge detection module detects the rising edge and falling edge of the measurement pulse signal according to the temporarily stored signal state obtained from the register module, and determines the number of rising delay unit levels corresponding to the rising edge and the number of falling delay unit levels corresponding to the falling edge in the measurement pulse signal according to the detection results of the rising edge and the falling edge of the measurement pulse signal.

[0051] The computing module is electrically connected to the edge detection module. The computing module detects the number of cycles of the clock signal between the rising edge of the measuring pulse signal and the falling edge of the measuring pulse signal according to the edge detection module, and inquires about the first delay time corresponding to the determined number of rising delay unit stages and the second delay time corresponding to the falling delay unit stages. The computing module calculates the time interval between the rising edge and the falling edge in the measuring pulse signal according to the cycle, number of cycles, first delay time and second delay time of the clock signal. The time-to-digital conversion device disclosed in the present application has a simple circuit structure, does not need to build a complex double-chain delay chain circuit structure, and can save a lot of resources or costs; and the first The timing start signal and the timing stop signal are converted into a measurement pulse signal through the signal conversion module, and then the time interval between the rising edge and the falling edge in the measurement pulse signal is realized through the cooperation of the delay chain module, the register module, the edge detection module and the calculation module. Therefore, for the measurement pulse signal, a small pulse width can also be measured. For the case of a large pulse width, the delay module is not used to receive the timing start signal. The register module collects the level state of the timing start signal according to the timing stop signal. Therefore, even if the delay level is limited, the timing stop signal will not collect an invalid timing start signal, which has the advantages of accurate measurement.

[0052] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings.

[0053] See also Figure 1 , which is a schematic diagram of the structure of the time-to-digital conversion device in one embodiment of the present invention.

[0054] like Figure 1 As shown, the time-to-digital conversion device includes: a signal conversion module 11, a delay chain module 12, a storage module 13, an edge detection module 14 and a calculation module 15.

[0055] The signal conversion module 11 is used to convert the timing start signal and the timing stop signal into a measurement pulse signal. Specifically, the input end of the signal conversion module 11 receives the timing start signal (which can be identified as start) and the timing stop signal (which can be identified as stop), converts the received timing start signal and timing stop signal into a measurement pulse signal and outputs it.

[0056] The time interval between the time when the timing start signal appears and the time when the timing stop signal appears is consistent with the pulse width of the measurement pulse signal.

[0057] Specifically, the timing start signal and the timing stop signal are electrical signals having a rising edge and a falling edge, respectively. In certain embodiments, the signal conversion module 11 converts a measurement pulse signal according to the rising edge of the timing start signal and the rising edge of the timing stop signal, and the pulse width of the measurement pulse signal is consistent with the time interval between the time when the timing start signal appears and the time when the timing stop signal appears. It can be that the time interval between the time when the edge of the timing start signal appears and the time when the edge of the timing stop signal appears is consistent with the pulse width of the measurement pulse signal. For example, the signal conversion module 11 records the rising edge of the timing start signal and the rising edge of the timing stop signal, and converts them into a measurement pulse signal accordingly, the rising edge of the measurement pulse signal corresponds to the rising edge of the timing start signal, and the falling edge of the measurement pulse signal corresponds to the rising edge of the timing stop signal, so as to achieve that the time interval between the time when the edge of the timing start signal appears and the time when the edge of the timing stop signal appears is consistent with the pulse width of the measurement pulse signal.

[0058] Of course, the measurement pulse signal converted by the signal conversion module 11 is not limited to this. For example, in some embodiments, the pulse width of the measurement pulse signal converted by the signal conversion module 11 is consistent with the time interval between the time when the timing start signal appears at a preset position and the time when the timing stop signal appears at a preset position.

[0059] In other embodiments, the measurement pulse signal converted by the signal conversion module 11 is not limited to the rising edge of the measurement pulse signal corresponding to the rising edge of the timing start signal, and the falling edge of the measurement pulse signal corresponding to the rising edge of the timing end signal. It can also be that the signal conversion module records the rising edge of the timing start signal and the falling edge of the timing stop signal, and converts it into a measurement pulse signal accordingly, the rising edge of the measurement pulse signal corresponds to the rising edge of the timing start signal, and the falling edge of the measurement pulse signal corresponds to the falling edge of the timing stop signal, that is, the time interval between the time when the rising edge of the timing start signal appears and the time when the falling edge of the timing stop signal appears is consistent with the pulse width of the measurement pulse signal. Alternatively, in some embodiments, the signal conversion module records the falling edge of the timing start signal and the rising edge of the timing stop signal, and converts it into a measurement pulse signal accordingly, the rising edge of the measurement pulse signal corresponds to the falling edge of the timing start signal, and the falling edge of the measurement pulse signal corresponds to the rising edge of the timing stop signal, that is, the time interval between the time when the falling edge of the timing start signal appears and the time when the rising edge of the timing stop signal appears is consistent with the pulse width of the measurement pulse signal. Alternatively, in some embodiments, the signal conversion module records the falling edge of the timing start signal and the falling edge of the timing stop signal, and converts them into a measurement pulse signal, the rising edge of the measurement pulse signal corresponds to the falling edge of the timing start signal, and the falling edge of the measurement pulse signal corresponds to the falling edge of the timing stop signal, that is, the time interval between the time when the falling edge of the timing start signal appears and the time when the falling edge of the timing stop signal appears is consistent with the pulse width of the measurement pulse signal.

[0060] See also Figure 2 , displayed as Figure 1 FIG. 1 is a circuit diagram of a signal conversion module in one embodiment. Figure 2 As shown, the signal conversion module 11 may include a latch unit. In some embodiments, the latch unit may be, for example, an RS latch circuit, which includes an R input terminal, an S input terminal, a first NOR gate G1, a second NOR gate G2, a Q output terminal, and a QN output terminal, wherein the first input terminal of the first NOR gate G1 is connected to the R input terminal, the first input terminal of the second NOR gate G2 is connected to the S input terminal, the output terminal of the first NOR gate G1 is connected to the Q output terminal, the output terminal of the first NOR gate G1 is connected to the second input terminal of the second NOR gate G2, the output terminal of the second NOR gate G2 is connected to the QN output terminal, and the output terminal of the second NOR gate G2 is connected to the second input terminal of the first NOR gate G1.

[0061] As mentioned above, in some embodiments, the signal conversion module converts a measurement pulse signal according to the rising edge of the timing start signal and the rising edge of the timing stop signal, and the pulse width of the measurement pulse signal is consistent with the time interval between the rising edge time of the timing start signal and the rising edge time of the timing stop signal. Therefore, correspondingly, as an RS latch circuit in one embodiment of the signal conversion module, the S input end of the RS latch circuit is used to receive the timing start signal, the R input end of the RS latch circuit is used to receive the timing stop signal, and the Q output end of the RS latch circuit is used to output the converted measurement pulse signal. In application, when the timing start signal is high and the timing stop signal is low, the measurement pulse signal output by the Q output end of the RS latch circuit is high, and when the timing start signal is low and the timing stop signal is high, the measurement pulse signal output by the Q output end of the RS latch circuit is low. It can be seen that the latch unit adopts an RS latch circuit, the circuit structure is simple, and has the advantages of high speed, stability, and reliability.

[0062] Of course, similarly, when the signal conversion module converts the measurement pulse signal based on other signal change states of the timing start signal and the timing stop signal, the access signals of the S input terminal, the D input terminal and the Q output terminal in the RS latch unit can be changed in other ways, which will not be repeated here.

[0063] In addition, in other embodiments, the structure of the RS latch circuit may also be changed. For example, in the RS latch circuit, the first NOR gate and the second NOR gate may be replaced by a first NAND gate and a second NAND gate, which should have similar functions.

[0064] See also Figure 3 , displayed as Figure 1 FIG. 1 is a circuit diagram of a signal conversion module in another embodiment. Figure 3 As shown, the signal conversion module 11 may also include a latch unit, a storage unit OR gate, an inverter, and a transmission gate circuit, wherein the inverter includes a first inverter N1, a second inverter N2, and a third inverter N3, and the transmission gate circuit includes a first transmission gate T1 and a second transmission gate T2.

[0065] The first input end of the OR gate OR is used to receive a timing start signal (which can be identified as start), the second input end of the OR gate OR is used to receive a timing stop signal (which can be identified as stop), and the output end of the OR gate OR is connected to the input end of the first inverter N1, so that the output signal S of the output end of the OR gate OR is inverted with the signal SN output after passing through the first inverter N1.

[0066] The transmission gate circuit includes a first transmission gate T1 and a second transmission gate T2, the output end of the OR gate OR is connected to the first control end of the first transmission gate T1 and the second control end of the second transmission gate T2, so that the first control end of the first transmission gate T1 and the second control end of the second transmission gate T2 receive a signal S, the output end of the first inverter N1 is connected to the second control end of the first transmission gate T1 and the first control end of the second transmission gate T2, so that the output end of the first inverter N1 and the second control end of the first transmission gate T1 receive a signal SN, the input end of the first transmission gate T1 is used to receive a timing stop signal (which can be marked as stop), the output end of the first transmission gate T1 is connected to the input end of the second transmission gate T2 and the input end of the second inverter N2, the output end of the second inverter N2 is connected to the input end of the third inverter N3, the output end of the second transmission gate T2 is connected to the output end of the third inverter N3, and the output end of the second inverter N2 is used to output a signal Q, that is, the signal Q is the converted measurement pulse signal.

[0067] See also Figure 4 , displayed as Figure 3 The timing diagram of each signal in the signal conversion module is shown.

[0068] Combination Figure 3 and Figure 4 For the OR gate OR, the timing start signal (which can be identified as start) and the timing stop signal (which can be identified as stop) are two input signals of the OR gate OR. When one of the timing start signal and the timing stop signal is at a high level, the output signal S at the output end of the OR gate OR is at a high level, and the signal SN outputted through the first inverter N1 is at a low level. When the timing start signal and the timing stop signal are both at a low level, the output signal S at the output end of the OR gate OR is at a low level, and the signal SN outputted through the first inverter N1 is at a high level.

[0069] For the first transmission gate T1 and the second transmission gate T2, the signal S and the signal SN are used as gate control signals of the first transmission gate T1 and the second transmission gate T2.

[0070] When the timing start signal is at a high level, the signal S output through the OR gate OR is at a high level, the signal SN output through the first inverter N1 is at a low level, the first transmission gate T1 is turned on, the second transmission gate T2 is turned off, the timing stop signal is input into the first transmission gate T1, and the timing stop signal outputs the signal Q through the second inverter N2. The signal Q is inverted with the timing stop signal. At this time, the timing stop signal is at a low level, so the signal Q is at a high level.

[0071] When the timing start signal and the timing stop signal are both low level, the signal S outputted by the OR gate OR is low level, the signal SN outputted by the first inverter N1 is high level, the first transmission gate T1 is turned off, the second transmission gate T2 is turned on, and the signal Q passes through the third inverter N3 and the second transmission gate T2 to reach the input end of the second inverter N2, and then passes through the second inverter N2 to reach the output end, so that the signal Q maintains the state before the first transmission gate T1 is turned off, that is, the signal Q is maintained at a high level.

[0072] When the timing stop signal is at a high level, the signal S outputted by the OR gate OR is at a high level, the signal SN outputted by the first inverter N1 is at a low level, the first transmission gate T1 is turned on, the second transmission gate T2 is turned off, and the timing stop signal passes through the second inverter N2 to obtain the signal Q, which is inverted with the timing stop signal. At this time, the timing stop signal is at a high level, so the signal Q is at a low level.

[0073] Therefore, the timing start signal and the timing stop signal are passed through the OR gate, the inverter, and the transmission gate circuit to obtain the converted measurement pulse signal (ie, signal Q).

[0074] In addition, in other embodiments, the structure of the signal conversion module may also be changed in other ways.

[0075] Therefore, it can be seen that the timing start signal and the timing stop signal can be converted into a measurement pulse signal through the signal conversion module. In practical applications, the signal conversion module has multiple implementation methods.

[0076] The delay chain module is electrically connected to the signal conversion module and is used to delay the measurement pulse signal output by the signal conversion module. The register module is electrically connected to the delay chain module.

[0077] See also Figure 5 , which is a circuit diagram of a delay chain module and a register module in one embodiment.

[0078] Combination Figure 1 and Figure 5 The delay chain module 12 is electrically connected to the signal conversion module 11. The delay chain module 12 includes a plurality of electrically connected delay units, which are used to sequentially delay the received measurement pulse signal Q. The setting of the delay unit in the delay chain module can be set according to the clock signal and the working requirements of the time-to-digital conversion device itself, wherein, and, the period of the clock signal is less than the sum of the delay times of the delay chain modules.

[0079] The register module 13 is electrically connected to the delay chain module 12. The register module 13 includes a plurality of electrically connected registers, wherein the registers correspond to the delay units, for example, the registers correspond to the delay units one by one, that is, one register corresponds to one delay unit. The registers in the register module 13 collect and temporarily store the signal state of the corresponding delay unit according to each clock signal, and the signal state represents the delay state of the measured pulse signal passing through the delay unit under the current clock signal.

[0080] In some embodiments, the register module 13 collects and temporarily stores the signal data of the delay unit in the delay module when the rising edge of each clock cycle of the clock signal arrives. For example, the signal data on the delay unit at that moment is collected when the rising edge of each clock cycle arrives.

[0081] In some embodiments, see Figure 6 , which is a schematic diagram of the structure of the time-to-digital conversion device of the present invention in another embodiment. The time-to-digital conversion device of the present invention further includes a calibration module 16 and a delay time storage module 17.

[0082] The calibration module 16 is electrically connected to the edge detection module 14 , and is used to measure the delay time of each delay unit in the delay chain module 12 .

[0083] For example, the delay chain module 12 includes N electrically connected delay units, where N is a positive integer greater than or equal to 1. The calibration module 16 can measure the delay time of each delay unit in the delay chain module 12, that is, the delay time of the first delay unit, the delay time of the second delay unit, the delay time of the third delay unit, ..., the delay time of the N-1th delay unit, and the delay time of the Nth delay unit.

[0084] The delay time storage module 17 is electrically connected to the calibration module 16 and the calculation module 15 . The delay time storage module 17 stores the measurement result of the delay time of each delay unit in the delay chain module 12 by the calibration module 16 .

[0085] In some embodiments, the storage address of the delay time storage module 117 corresponds to the number of delay units in the delay chain module 12, wherein the Nth storage address in the delay time storage module stores the delay time corresponding to the Nth delay unit number, and the delay time corresponding to the Nth delay unit number is the sum of the delay times from the 1st delay unit to the Nth delay unit, and N is a positive integer greater than or equal to 1. For example, the first storage address of the delay time storage module 17 stores the delay time of the first delay unit, the second storage address of the delay time storage module 17 stores the sum of the delay time of the first delay unit and the delay time of the second delay unit, the third storage address of the delay time storage module 17 stores the delay time of the first delay unit, the delay time of the second delay unit, and the sum of the delay time of the third delay unit, ..., the Nth storage address of the delay time storage module 17 stores the sum of the delay time from the first delay unit to the Nth delay unit. In other embodiments, the delay time storage module 17 may correspond to the storage address of a single delay time. When the delay time in the measured pulse signal needs to be obtained, the required number of delay unit levels can be directly queried through the calculation module 15, and the calculation can be performed based on the required number of delay unit levels and the corresponding delay time, including all delay unit levels before the required delay unit and the corresponding delay time.

[0086] In practical applications, the delay time storage module 17 may include a random access memory (RAM), a flash memory (Flash Memory), etc., or may be a hard disk drive (HDD) or a solid-state drive (SSD).

[0087] The edge detection module 14 is electrically connected to the register module 13. The edge detection module 14 detects the rising edge and the falling edge of the measurement pulse signal according to the temporarily stored signal state obtained from the register module 13, and determines the number of rising delay unit levels corresponding to the rising edge and the number of falling delay unit levels corresponding to the falling edge in the measurement pulse signal according to the detection results of the rising edge and the falling edge of the measurement pulse signal.

[0088] In some embodiments, the edge detection module 14 acquires the signal state stored in the register module 13 when the rising edge of each clock cycle arrives.

[0089] As mentioned above, the timing start signal and the timing stop signal are converted into a measurement pulse signal by the signal conversion module 11. The measurement pulse signal has a rising edge and a falling edge. Therefore, in some embodiments, the edge detection module 14 may further include a rising edge detection unit and a falling edge detection unit. Figure 7, which is a schematic diagram of the structure of an edge detection module in one embodiment. Figure 7 As shown, the edge detection module 14 includes a rising edge detection unit 141 and a falling edge detection unit 143 .

[0090] Combination Figure 1 and Figure 7 The rising edge detection unit 141 detects whether the temporarily stored signal state obtained from the register module 13 has a first conversion state. The first conversion state may be, for example, a jump from a low level to a high level, and may be a jump from signal data representing a low level to signal data representing a high level in the temporarily stored signal data obtained from the register module 13. When there is a first conversion state, the signal state includes a rising edge, and the signal position corresponding to the rising edge of the signal state is marked with a first mark. For example, in some embodiments, the rising edge detection unit 141 detects the signal state of the corresponding delay unit temporarily stored in each register in the register module 13. When it is detected that the signal state temporarily stored in the current register is a low level and the signal state temporarily stored in the next register is a high level, it indicates that the rising edge of the corresponding measurement pulse signal is detected. At this time, the position corresponding to the data signal of the register where the high level first appears in the temporarily stored signal data obtained from the register module 13 is marked. For example, the data signal of the register where the high level first appears in the temporarily stored signal data obtained from the register module can be represented by a first code, and the signal data corresponding to the remaining registers are represented by a second code different from the first code, thereby achieving marking of the position corresponding to the rising edge. At this time, the first code is the first mark.

[0091] The falling edge detection unit 143 detects whether the temporarily stored signal state obtained from the register module 13 has a second conversion state. The second conversion state may be, for example, a jump from a high level to a low level, which may be a jump from signal data representing a high level to signal data representing a low level in the temporarily stored signal data obtained from the register module 13. When there is a second conversion state, the signal state includes a falling edge, and a second mark is used to mark the signal position of the signal state corresponding to the falling edge, wherein the first conversion state and the second conversion state represent different signal change states respectively. For example, in some embodiments, the falling edge detection unit 143 detects the signal state of the corresponding delay unit temporarily stored in each register in the register module 13. When it is detected that the signal state temporarily stored in the current register is high and the signal state temporarily stored in the next register is low, it indicates that the falling edge of the corresponding measurement pulse signal is detected. At this time, the position corresponding to the signal data corresponding to the register where the low level first appears in the temporarily stored signal data obtained from the register module 13 is marked. For example, the signal data corresponding to the register where the low level first appears in the temporarily stored signal data obtained from the register module can be represented by the third encoding, and the signal data corresponding to the remaining registers are all represented by the fourth encoding different from the third encoding, so as to realize the marking of the position corresponding to the falling edge in the register module. At this time, the third encoding is recorded as the second mark. Among them, the first encoding and the third encoding can be the same or different, and the second encoding and the fourth encoding can be the same or different.

[0092] The edge detection module includes a rising edge detection unit and a falling edge detection unit, which can work independently and detect at the same time without interfering with each other. Even for a measurement pulse signal with a small pulse width, for example, the pulse width of the measurement pulse signal is less than one clock cycle, it can still ensure that the rising edge detection unit and the falling edge detection unit working independently detect the measurement pulse signal at the same time and accurately detect the rising edge of the measurement pulse signal and the falling edge of the measurement pulse signal respectively.

[0093] The following description is made by taking the high level as 1 and the low level as 0 as an example.

[0094] If the signal state collected and temporarily stored by the registration module is 0000000011111111, the rising edge detection unit in the edge detection module detects that the signal state has a first transition state from a low level to a high level, and marks the signal position generating the first transition state. For example, 1 is used as the first encoding, and 1 is also used as the first mark at this time. 0 is used as the second encoding. After marking, the signal position of the first transition state can be 0000000010000000.

[0095] If the signal state collected and temporarily stored by the registration module is 1111111100000000, the falling edge detection unit in the edge detection module detects that the signal state has a second transition state from a high level to a low level, and marks the signal position where the second transition state is generated. For example, 1 is used as the third encoding, and 1 is also used as the second mark. 0 is used as the fourth encoding. After marking, the signal position of the second transition state can be 0000000010000000.

[0096] If the signal state collected and temporarily stored by the register module is 0000000000000000 or 11111111111111111, the rising edge detection unit in the edge detection module cannot detect the first transition state of the signal state jumping from a low level to a high level, and the falling edge detection unit in the edge detection module cannot detect the second transition state of the signal state jumping from a high level to a low level, and there is no edge.

[0097] In some embodiments, the edge detection module further includes a decoding unit. Figure 8 , which is a schematic diagram of the structure of the edge detection module in another embodiment. Figure 8 As shown, the edge detection module 14 includes a rising edge detection unit 141 , a falling edge detection unit 143 , and a decoding unit 145 .

[0098] The structures and functions of the rising edge detection unit 141 and the falling edge detection unit 143 can be referred to in the above-mentioned combination. Figure 7 The description will not be repeated here.

[0099] Combination Figure 1 and Figure 8 , the decoding unit 145 is electrically connected to the computing module 15. Figure 6 and Figure 8 The decoding unit 145 is electrically connected to the calculation module 15 and the decoding unit 145 is electrically connected to the calibration module 16. The decoding unit 145 queries the number of delay units corresponding to the first mark as the number of rising delay units corresponding to the rising edge in the measurement pulse signal, and queries the number of delay units corresponding to the second mark as the number of falling delay units corresponding to the falling edge in the measurement pulse signal.

[0100] The calculation module 15 is electrically connected to the edge detection module 14. The calculation module 15 detects the number of cycles of the clock signal between the rising edge of the measuring pulse signal and the falling edge of the measuring pulse signal according to the edge detection module 14, and queries the first delay time corresponding to the determined number of rising delay units and the second delay time corresponding to the number of falling delay units. Thus, according to the period, number of periods, first delay time and second delay time of the clock signal, the time interval between the rising edge and the falling edge in the measuring pulse signal is calculated.

[0101] In some embodiments, the edge detection module 14 detects the rising edge of each clock cycle. The calculation module 15 includes a clock counting unit. When the edge detection module 14 detects the rising edge of the measurement pulse signal according to the temporarily stored signal state obtained from the register module 13, the clock counting unit starts and begins to record the cycle of the clock signal, that is, when the rising edge detection unit 141 detects the rising edge of the measurement pulse signal, the clock counting unit starts and begins to record the cycle of the clock signal; thereafter, after each clock cycle, the edge detection module 14 detects the temporarily stored signal state in the register module 13 at the rising edge of each clock cycle, and at the same time, the clock counting unit accumulates the cycle of the clock signal; until the edge detection module 14 detects the falling edge of the measurement pulse signal, that is, when the falling edge detection unit 143 detects the falling edge of the measurement pulse signal, the clock counting unit stops counting, and the cycle of the clock signal recorded by the clock counting unit is used as the cycle number n of the clock signal.

[0102] In addition, the decoding unit 145 in the edge detection module 14 determines the number of rising delay units corresponding to the rising edge and the number of falling delay units corresponding to the falling edge in the measurement pulse signal according to the detection results of the rising edge and the falling edge of the measurement pulse signal. In this way, the calculation module 15 can query and obtain the first delay time corresponding to the number of rising delay units according to the number of rising delay units corresponding to the rising edge in the measurement pulse signal determined by the decoding unit 145 in the edge detection module 14, and the calculation module 15 can query and obtain the second delay time corresponding to the number of falling delay units according to the number of falling delay units corresponding to the falling edge in the measurement pulse signal determined by the decoding unit 145 in the edge detection module 14. In some embodiments, the calculation module 15 can query and obtain the first delay time corresponding to the number of rising delay units and the second delay time corresponding to the number of falling delay units from the delay time storage module 17.

[0103] Then, the calculation module 15 calculates the time interval between the rising edge and the falling edge of the measurement pulse signal based on the following formula:

[0104] T=n*T clk +ΔT1-ΔT2

[0105] Where T represents the time interval between the rising edge and the falling edge of the measured pulse signal, T clk Represents the period of each clock signal, the period of the clock signal T clkLess than the sum of the delay times of the delay chain modules, n represents the number of cycles of the clock signal used between the edge detection module detecting the rising edge of the measurement pulse signal and detecting the falling edge of the measurement pulse signal, and n≥0, ΔT1 represents the first delay time corresponding to the number of rising delay unit levels, and ΔT2 represents the second delay time corresponding to the number of falling delay unit levels.

[0106] The following is a detailed description of the different measurement stages in the measurement process with examples.

[0107] During measurement, when the rising edge of each clock cycle arrives, the edge detection module detects the signal state of the delay unit stored in the register to determine whether the signal state changes.

[0108] When the edge detection module detects that the signal state of the delay unit stored in the register has the first transition state (i.e., rising edge) from low level to high level when the rising edge of a certain clock cycle arrives, it indicates that the measurement pulse signal has entered the delay chain module, and the clock counting unit in the calculation module starts recording, and the cycle number n is cleared to 0. In addition, the edge detection module determines the rising delay unit level corresponding to the rising edge in the measurement pulse signal based on the detection result of the rising edge of the measurement pulse signal, for example, n1 delay units, and the calculation module queries the first delay time ΔT1 corresponding to the determined rising delay unit level. The above measurement phase can be referred to Fig. 9 .

[0109] Continue to detect when the rising edge of the next clock cycle arrives. If the signal state of the delay unit stored in the edge detection module detection register has not changed and remains at a high level, that is, the measurement pulse signal is at a high level. At this time, the number of cycles n recorded by the clock counting unit in the calculation module is accumulated by 1 after each clock cycle. The above measurement stage can be seen in Fig.10 .

[0110] When the edge detection module continues to detect in the next clock cycle, if the edge detection module detects that the signal state of the delay unit stored in the register has a second transition state (i.e., falling edge) from a high level to a low level, it means that the tail of the measured pulse signal has entered the delay chain module, the timing ends, and the number of cycles n recorded by the clock counting unit in the calculation module is increased by 1. In addition, the edge detection module determines the falling delay unit level corresponding to the falling edge in the measured pulse signal based on the detection result of the falling edge of the measured pulse signal, for example, n2 delay units, and the calculation module queries the second delay time ΔT2 corresponding to the determined falling delay unit level. The above measurement phase can be referred to. Fig.11 .

[0111] In this way, the calculation module can calculate the time interval between the rising edge and the falling edge of the measurement pulse signal according to the period of the time signal, the number of periods n, the first delay time ΔT1, and the second delay time ΔT2, that is, T = n*T clk +ΔT1-ΔT2.

[0112] Of course, if when the rising edge of a certain clock cycle arrives, it is detected that the signal state of the delay unit stored in the register has a first transition state from a low level to a high level (i.e., a rising edge) and it is detected that the signal state of the delay unit stored in the register has a second transition state from a high level to a low level (i.e., a falling edge), then it indicates that the pulse width of the measurement pulse signal is within one clock cycle, and the cycle number n is 0; and, the edge detection module determines the number of rising delay units corresponding to the rising edge in the measurement pulse signal according to the detection result of the rising edge of the measurement pulse signal, for example, n1 level delay units, and the calculation module queries the first delay time ΔT1 corresponding to the determined number of rising delay units, and, the edge detection module determines the number of falling delay units corresponding to the falling edge in the measurement pulse signal according to the detection result of the falling edge of the measurement pulse signal, for example, n2 level delay units, and the calculation module queries the second delay time ΔT2 corresponding to the determined number of falling delay units. In this way, the calculation module calculates the time interval between the rising edge and the falling edge of the measurement pulse signal according to the number of cycles n of the clock signal between the rising edge of the measurement pulse signal and the falling edge of the measurement pulse signal, the first delay time ΔT1 corresponding to the number of rising delay unit levels, and the second delay time ΔT2 corresponding to the number of falling delay unit levels, that is, T = n*T clk +ΔT1-ΔT2=0*T clk +ΔT1-ΔT2=ΔT1-ΔT2. The above measurement results can be found in Fig.12 It can be seen that even for a measurement pulse signal with a smaller pulse width, the measurement pulse signal with a smaller pulse width can still be detected and the rising edge of the measurement pulse signal and the falling edge of the measurement pulse signal can be accurately detected, and then the time interval between the rising edge and the falling edge in the measurement pulse signal can be calculated.

[0113] If the pulse width of the measuring pulse signal is very wide, even if the number of delay units electrically connected in the delay chain module is limited, the edge detection module in the present invention can still detect the rising edge time of each clock cycle and finally detect the falling edge of the measuring pulse signal.

[0114] The time conversion device disclosed in the present invention includes a signal conversion module, a delay chain module, a storage module, an edge detection module and a calculation module. The signal conversion module is used to convert a timing start signal and a timing stop signal into a measurement pulse signal. The delay chain module is used to delay the measurement pulse signal. The storage module is used to collect and temporarily store the signal state of the corresponding delay unit. The edge detection module is used to detect the rising edge and the falling edge of the measurement pulse signal. According to the detection results of the rising edge and the falling edge of the measurement pulse signal, the number of rising delay unit levels corresponding to the rising edge and the number of falling delay unit levels corresponding to the falling edge in the measurement pulse signal are determined. The calculation module is used to obtain the number of cycles of the clock signal between the rising edge and the falling edge in the measurement pulse signal according to the detection results of the edge detection module, and the first delay time corresponding to the determined number of rising delay unit levels and the second delay time corresponding to the number of falling delay unit levels are queried, so as to calculate the time interval between the rising edge and the falling edge in the measurement pulse signal. In this way, the time-to-digital conversion device disclosed in the present application has a simple circuit structure, and does not need to build a complex double-chain delay chain circuit structure, which can save a lot of resources or costs; and the timing start signal and the timing stop signal are first converted into a measurement pulse signal through the signal conversion module, and then the time interval between the rising edge and the falling edge in the measurement pulse signal is realized through the cooperation of the delay chain module, the storage module, the edge detection module and the calculation module. Therefore, for the measurement pulse signal, a small pulse width can also be measured. For the case of a large pulse width, the delay module is not used to receive the timing start signal. The register module collects the level state of the timing start signal according to the timing stop signal. Therefore, even if the delay level is limited, the timing stop signal will not be used to collect an invalid timing start signal, which has the advantages of accurate measurement.

[0115] The present invention further discloses a time-to-digital conversion method, which can be applied to the aforementioned time-to-digital conversion device.

[0116] See also Fig.13 , which is a flow chart of the time-to-digital conversion method in one embodiment of the present invention.

[0117] like Fig.13 As shown, the time-to-digital conversion method of the present invention comprises the following steps:

[0118] Step S201: The signal conversion module converts the timing start signal and the timing stop signal into a measurement pulse signal.

[0119] The time interval between the time when the timing start signal appears and the time when the timing stop signal appears is consistent with the pulse width of the measurement pulse signal.

[0120] The edge of the timing start signal can be a rising edge or a falling edge, and the edge of the timing stop signal can be a rising edge or a falling edge, so there are different implementation methods.

[0121] Taking the case where the edge of the timing start signal adopts the rising edge and the edge of the timing stop signal adopts the rising edge as an example, the signal conversion module converts the rising edge of the timing start signal and the rising edge of the timing stop signal into a measurement pulse signal, and the pulse width of the measurement pulse signal is consistent with the time interval between the time when the timing start signal appears and the time when the timing stop signal appears. At this time, the pulse width of the measurement pulse signal is consistent with the time interval between the time when the rising edge of the timing start signal appears and the time when the rising edge of the timing stop signal appears.

[0122] Step S203, the multiple delay units electrically connected in the delay chain module sequentially delay the received measurement pulse signal, and the multiple registers electrically connected in the register module collect and temporarily store the signal state of the corresponding delay unit according to each clock signal.

[0123] The signal state represents the delay state of the measurement pulse signal passing through the delay unit under the current clock signal.

[0124] In step S205, the edge detection module detects the rising edge and the falling edge of the measurement pulse signal according to the temporarily stored signal state obtained from the register module, and determines the number of rising delay units corresponding to the rising edge and the number of falling delay units corresponding to the falling edge in the measurement pulse signal according to the detection results of the rising edge and the falling edge of the measurement pulse signal.

[0125] In some embodiments, the edge detection module detects whether the temporarily stored signal state obtained from the register module has a first transition state, and the first transition state can be, for example, a jump from a low level to a high level. When there is a first transition state, the signal state includes a rising edge, and the first mark is used to mark the delay unit corresponding to the register corresponding to the rising edge of the signal state. Similarly, the edge detection module detects whether the temporarily stored signal state obtained from the register module has a second transition state, and the second transition state can be, for example, a jump from a high level to a low level. When there is a second transition state, the signal state includes a falling edge, and the second mark is used to mark the delay unit corresponding to the register corresponding to the falling edge of the signal state.

[0126] In addition, the edge detection module determines the number of rising delay units corresponding to the rising edge and the number of falling delay units corresponding to the falling edge in the measurement pulse signal according to the detection results of the rising edge and the falling edge of the measurement pulse signal. The number of rising delay units corresponding to the rising edge in the measurement pulse signal is the number of delay units corresponding to the first mark, and the number of falling delay units corresponding to the falling edge in the measurement pulse signal is the number of delay units corresponding to the second mark.

[0127] In some embodiments, the number of stages of each delay unit is stored by a delay time storage module. The storage address of the delay time storage module corresponds to the number of stages of the delay unit in the delay chain module, wherein the Nth storage address in the delay time storage module stores the delay time corresponding to the Nth delay unit stage, and the delay time corresponding to the Nth delay unit stage is the sum of the delay times of the 1st delay unit to the Nth delay unit, and N is a positive integer greater than or equal to 1.

[0128] In step S207, the calculation module detects the number of cycles of the clock signal between the rising edge of the measuring pulse signal and the falling edge of the measuring pulse signal according to the edge detection module, and queries the first delay time corresponding to the determined number of rising delay unit levels and the second delay time corresponding to the number of falling delay unit levels, and calculates the time interval between the rising edge and the falling edge in the measuring pulse signal according to the cycle of the clock signal, the number of cycles, the first delay time and the second delay time.

[0129] Based on the above embodiments, the present invention further discloses a chip, which includes the above time-to-digital conversion device.

[0130] In some embodiments, the chip may be, for example, a Field-Programmable Gate Array (FPGA) chip or other similar chips.

[0131] It should be noted that the time-to-digital conversion method disclosed in the above embodiment and the time-to-digital conversion device disclosed in the above embodiment belong to the same concept, and the specific manner in which the relevant modules and units perform operations in each step has been described in detail in the device embodiment and will not be repeated here.

[0132] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A time-to-digital conversion device, characterized in that: include: Signal conversion module, delay chain module, storage module, edge detection module and calculation module; The timing start signal and the timing stop signal are converted into a measurement pulse signal by the signal conversion module, and the time interval between the time when the timing start signal appears and the time when the timing stop signal appears is consistent with the pulse width of the measurement pulse signal; The delay chain module is electrically connected to the signal conversion module, and the delay chain module includes a plurality of electrically connected delay units; the plurality of electrically connected delay units are used to sequentially delay the received measurement pulse signal; The register module is electrically connected to the delay chain module, and the register module includes a plurality of electrically connected registers, the registers correspond to the delay units, and the registers collect and temporarily store the signal state of the corresponding delay unit according to each clock signal, and the signal state represents the delay state of the measurement pulse signal passing through the delay unit under the current clock signal; The edge detection module is electrically connected to the register module, and the edge detection module detects the rising edge and the falling edge of the measurement pulse signal according to the temporarily stored signal state obtained from the register module, and determines the number of rising delay units corresponding to the rising edge and the number of falling delay units corresponding to the falling edge in the measurement pulse signal according to the detection results of the rising edge and the falling edge of the measurement pulse signal; as well as The calculation module is electrically connected to the edge detection module. The calculation module detects the number of cycles of the clock signal between the rising edge of the measurement pulse signal and the falling edge of the measurement pulse signal according to the edge detection module, and queries the first delay time corresponding to the determined number of rising delay unit levels and the second delay time corresponding to the falling delay unit levels, and calculates the time interval between the rising edge and the falling edge in the measurement pulse signal according to the cycle of the clock signal, the number of cycles, the first delay time and the second delay time.

2. The time-to-digital conversion device according to claim 1, characterized in that: The signal conversion module includes a latch unit; the latch unit includes an RS latch circuit.

3. The time-to-digital conversion device according to claim 1, characterized in that: The signal conversion module includes a latch unit, and the latch unit includes an OR gate, an inverter, and a transmission gate circuit; The inverter includes a first inverter, a second inverter and a third inverter, and the transmission gate includes a first transmission gate and a second transmission gate; The first input end of the OR gate receives the timing start signal, the second input end of the OR gate receives the timing stop signal, the output end of the OR gate is connected to the input end of the first inverter, and the output end of the OR gate is connected to the first control end of the first transmission gate and the second control end of the second transmission gate, the output end of the first inverter is connected to the second control end of the first transmission gate and the first control end of the second transmission gate, the timing stop signal is input to the input end of the first transmission gate, the output end of the first transmission gate is connected to the input end of the second transmission gate and the input end of the second inverter, the output end of the second inverter is connected to the input end of the third inverter, and the output end of the second transmission gate is connected to the output end of the third inverter.

4. The time-to-digital conversion device according to claim 1, characterized in that: The edge detection module includes a rising edge detection unit and a falling edge detection unit; The rising edge detection unit detects whether the temporarily stored signal state obtained from the register module has a first conversion state, and when the first conversion state exists, the signal state includes a rising edge, and uses a first mark to mark the signal position of the signal state corresponding to the rising edge; The falling edge detection unit detects whether the temporarily stored signal state obtained from the register module has a second conversion state. When the second conversion state exists, the signal state includes a falling edge, and a second mark is used to mark the signal position of the signal state corresponding to the falling edge, wherein the first conversion state and the second conversion state respectively represent different signal change states.

5. The time-to-digital conversion device according to claim 4, characterized in that: The edge detection module also includes a decoding unit, and the calculation module is electrically connected to the decoding unit. The decoding unit queries the number of delay units corresponding to the first mark as the number of rising delay units corresponding to the rising edge in the measurement pulse signal, and queries the number of delay units corresponding to the second mark as the number of falling delay units corresponding to the falling edge in the measurement pulse signal.

6. The time-to-digital conversion device according to claim 1, characterized in that: Also includes: Calibration module and delay time storage module; The calibration module is electrically connected to the edge detection module, and the calibration module measures the delay time of each delay unit in the delay chain module; The delay time storage module is electrically connected to the calibration module and the calculation module. The delay time storage module stores the measurement results of the delay time of each delay unit in the delay chain module by the calibration module. The calculation module queries the first delay time corresponding to the determined rising delay unit level and the second delay time corresponding to the falling delay unit level from the delay time storage module.

7. The time-to-digital conversion device according to claim 6, characterized in that: The storage address of the delay time storage module corresponds to the number of delay units, wherein the Nth storage address in the delay time storage module stores the delay time corresponding to the Nth delay unit level, the delay time corresponding to the Nth delay unit level is the sum of the delay times from the 1st delay unit to the Nth delay unit, and N is a positive integer greater than or equal to 1.

8. The time-to-digital conversion device according to claim 1 or 7, characterized in that: The calculation module includes a clock counting unit. When the edge detection module detects the rising edge of the measurement pulse signal, the clock counting unit starts and records the period of the clock signal. When the edge detection module detects the falling edge of the measurement pulse signal, the clock counting unit stops, and the period of the clock signal recorded by the clock counting unit is used as the period number n of the clock signal. The time interval between the rising edge and the falling edge of the measurement pulse signal is calculated based on the following formula: T=n*T clk +ΔT1-ΔT2 Where T represents the time interval between the rising edge and the falling edge of the measured pulse signal, T clk represents the period of each clock signal, and the period T of the clock signal clk is smaller than the total delay time of the delay chain module, n represents the number of cycles of the clock signal used between the edge detection module detecting the rising edge of the measurement pulse signal and detecting the falling edge of the measurement pulse signal, and n≥0, ΔT1 represents the first delay time corresponding to the number of rising delay unit levels, and ΔT2 represents the second delay time corresponding to the number of falling delay unit levels.

9. A time-to-digital conversion method, characterized in that: The steps include: The signal conversion module converts the timing start signal and the timing stop signal into a measurement pulse signal, wherein the time interval between the time when the timing start signal appears and the time when the timing stop signal appears is consistent with the pulse width of the measurement pulse signal; The received measurement pulse signal is delayed in sequence by a plurality of delay units electrically connected in the delay chain module, and a plurality of registers electrically connected in the register module collect and temporarily store the signal state of the corresponding delay unit according to each clock signal, wherein the signal state represents the delay state of the measurement pulse signal passing through the delay unit under the current clock signal; The edge detection module detects the rising edge and the falling edge of the measurement pulse signal according to the temporarily stored signal state obtained from the register module, and determines the number of rising delay units corresponding to the rising edge and the number of falling delay units corresponding to the falling edge in the measurement pulse signal according to the detection results of the rising edge and the falling edge of the measurement pulse signal; as well as The calculation module detects the number of cycles of the clock signal between the rising edge of the measuring pulse signal and the falling edge of the measuring pulse signal according to the edge detection module, and queries the first delay time corresponding to the determined number of rising delay unit levels and the second delay time corresponding to the falling delay unit levels, and calculates the time interval between the rising edge and the falling edge in the measuring pulse signal according to the cycle of the clock signal, the number of cycles, the first delay time and the second delay time.

10. A chip, characterized in that: The device comprises a time-to-digital conversion device as claimed in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Time-to-digital converter and time-to-digital conversion method

    CN102882527A

  • Shifting register circuit, phase difference computing method and time-digital converter

    CN106681127A

  • Annular carry chain TDC circuit based on fine delay phase shift and measurement method thereof

    CN113346879A

  • Clock real-time synchronization device and method

    CN115913435A

  • Delay generation system adopting double-phase sampling and on-line calculation mode

    CN117767924A

Cited By

  • TDC delay chain delay calibration system and calibration method based on direct digital synthesis

    CN119171914A

  • Pulse arrival time measuring system and method

    CN119471586A