A pulse signal capture circuit and microprocessor chip
By utilizing oscillation delay lines and capture delay lines in the pulse signal capture circuit, combining the signal processing module and the clock processing module, the edge signal of the pulse signal is captured by only one capture delay line, solving the large area and cost in the prior art High problem, efficient pulse signal capture is achieved.
Patent Information
- Application Number
- CN202410101211.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-27
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2043-04-27
AI Technical Summary
The existing pulse signal capture circuit has a large area and is costly, and two capture delay lines need to be set up to capture the rising and falling edges of the pulse signal.
A pulse signal capture circuit is designed. Through the oscillation delay line and the capture delay line, the signal processing module and the clock processing module detect whether the input signal contains an edge signal. Only a capture delay line is required to achieve time capture of the pulse signal. , reducing the circuit footprint and cost.
Effective capture of pulse signals is achieved, reducing the circuit area and cost, while improving the capture accuracy and efficiency.
Smart Images

Figure CN118041317B_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202310474717.9, and the original application date is April 27, 2023. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] The present application relates to the technical field of electronic circuits, and in particular to a pulse signal capture circuit and a microprocessor chip. Background Art
[0003] In many application fields, such as automobiles, CNC machine tools, robots, precision equipment / instruments, etc., it is very important to capture the rising and falling edges of pulse signals. In some technologies, the capture circuit of the pulse signal is connected to the oscillator by setting an oscillation line, and the oscillation line is connected to the oscillator count by setting multiple delay elements thereon, so as to count the integer part of the pulse signal. The capture circuit of the pulse signal is used to count the decimal part in the pulse signal by setting two capture delay lines and a multiplexer. Although the capture circuit of the above-mentioned pulse signal can capture the rising and falling edges of the pulse signal to determine the duration of the pulse signal. However, the capture circuit of the above-mentioned pulse signal needs to set two capture delay lines, which causes the capture circuit of the pulse signal to occupy a large area and have a high cost. Summary of the invention
[0004] In view of this, the present application provides a pulse signal capture circuit and a microprocessor chip to help solve the problem in the prior art that the pulse signal capture circuit occupies a large area and has a high cost.
[0005] In a first aspect, an embodiment of the present application provides a pulse signal capture circuit, comprising:
[0006] An oscillating delay line, the oscillating delay line comprising a logic gate and n delay elements; the n delay elements are electrically connected in sequence, a first input end of the logic gate is electrically connected to an output end of the nth delay element, a second input end of the logic gate is used to receive an enable signal, and an output end of the logic gate is electrically connected to a first input end of a first delay element; the oscillating delay line is used to periodically output a first clock signal; n is an integer greater than 0;
[0007] A capture delay line, comprising m capture delay elements, wherein the m capture delay elements are electrically connected in sequence, wherein the first output end and the second input end of the first capture delay element are electrically connected to the first input end and the second output end of the second capture delay element respectively; the first capture delay element and the second capture delay element are two adjacent capture delay elements; the capture delay line is used to perform time capture according to the signal received by the first input end of the first capture delay element and the second input end of the mth capture delay element; m is an integer greater than 0;
[0008] A signal processing module, wherein the input end of the signal processing module is used to receive an input signal, and the output end is electrically connected to the first input end of the first capture delay element of the capture delay line; the signal processing module is used to output a first received signal to the first input end of the first capture delay element based on whether the received input signal contains an edge signal; the first received signal includes a first signal or a second signal; the first signal is a signal that triggers the capture delay line to perform time capture, and the second signal is a signal other than the first signal;
[0009] A clock processing module, wherein the first input end of the clock processing module is electrically connected to the output end of the nth delay element, the second input end is used to receive the input signal, and the output end is electrically connected to the second input end of the mth capture delay element of the capture delay line; the clock processing module is used to process the first clock signal based on whether the received input signal contains an edge signal to obtain a second received signal, and output the second received signal to the second input end of the mth capture delay element; the second received signal includes a second clock signal or a second signal.
[0010] In a possible implementation of the first aspect, the clock processing module includes: a first preprocessing module, a first inverter, and a first multiplexer;
[0011] The first input end of the first preprocessing module is used to receive the input signal, the second input end of the first preprocessing module is electrically connected to the output end of the nth delay element, and the output end of the first preprocessing module is electrically connected to the control end of the first multiplexer;
[0012] The input end of the first inverter and the first input end of the first multiplexer are both electrically connected to the output end of the nth delay element, the output end of the first inverter is electrically connected to the second input end of the first multiplexer, and the output end of the first multiplexer is electrically connected to the second input end of the mth capture delay element of the capture delay line;
[0013] The first preprocessing module is used to control the first multiplexer to output a second received signal according to whether the received input signal contains an edge signal.
[0014] In a possible implementation manner of the first aspect, the first multiplexer further includes: a third input terminal;
[0015] a third input terminal of the first multiplexer, for receiving the second signal;
[0016] The first preprocessing module is specifically configured to control the first multiplexer to output the second signal received at the third input terminal when the received input signal does not include an edge signal;
[0017] When the received input signal includes an edge signal, the first multiplexer is controlled to output the first clock signal received at the first input terminal, or the first multiplexer is controlled to output an inverted signal of the first clock signal received at the second input terminal.
[0018] In a possible implementation manner of the first aspect, the signal processing module includes a second preprocessing module;
[0019] The input end of the second preprocessing module is used to receive an input signal, and the output end is electrically connected to the first input end of the first capture delay element of the capture delay line; the second preprocessing module is used to output a first received signal to the first input end of the first capture delay element based on whether the received input signal contains an edge signal.
[0020] In a possible implementation of the first aspect, the signal processing module further includes: a second inverter and a second multiplexer;
[0021] The input end of the second inverter and the first input end of the second multiplexer are both used to receive an input signal, the output end of the second inverter is electrically connected to the second input end of the second multiplexer, the output end of the second pre-processing module is electrically connected to the control end of the second multiplexer, and the output end of the second multiplexer is electrically connected to the first input end of the first capture delay element of the capture delay line;
[0022] The second preprocessing module is specifically used to control the second multiplexer to output a first received signal based on whether the received input signal contains an edge signal; wherein the first received signal includes the input signal or an inverted signal of the input signal.
[0023] In a possible implementation of the first aspect, the second preprocessing module is specifically used to output a first signal to the first input terminal of the first capture delay element within the duration of the edge signal when the received input signal includes an edge signal; or to output a second signal to the first input terminal of the first capture delay element when the received input signal does not include an edge signal.
[0024] A possible implementation of the first aspect further includes: a control module;
[0025] The input end of the control module is electrically connected to the first output end and / or the second output end of the m capture delay elements, the output end of the control module is connected to the control end of the second pre-processing module, and the control module is used to send a control signal to the second pre-processing module according to a signal received at the input end;
[0026] The second preprocessing module is specifically used to output a first signal to the first input end of the first capture delay element when the received input signal contains an edge signal until the control signal is received, and output a second signal to the first input end of the first capture delay element when the control signal is received.
[0027] A possible implementation of the first aspect further includes: an oscillation counter;
[0028] The oscillation counter is connected to the output end of the nth delay element; the oscillation counter is used to count the first clock signal.
[0029] In a possible implementation manner of the first aspect, a counting period of the oscillation counter is half of a period of the first clock signal.
[0030] In a possible implementation manner of the first aspect, the values of n and m are equal.
[0031] In a possible implementation of the first aspect, each of the m capture delay elements includes a first NAND gate, a trigger, and a second NAND gate; wherein the first input end of the first NAND gate is connected to the first output end of the trigger, and the first input end of the second NAND gate is connected to the second output end of the trigger;
[0032] The output of the first NAND gate of the first capture delay element is connected to the first input of the trigger of the second capture delay element, and the second input of the trigger of the first capture delay element is connected to the output of the second NAND gate of the second capture delay element.
[0033] In a possible implementation of the first aspect, each of the n delay elements includes a third NAND gate and a fourth NAND gate; wherein the output end of the third NAND gate is connected to the first input end of the fourth NAND gate; the output end of the fourth NAND gate of the first delay element is connected to the first input end of the third NAND gate of the second delay element, and the first delay element and the second delay element are two adjacent delay elements.
[0034] In a second aspect, an embodiment of the present application provides a pulse signal capture circuit, including:
[0035] An oscillating delay line, periodically providing a first clock signal to a clock processing module;
[0036] A capture delay line, comprising m capture delay elements, wherein the m capture delay elements are sequentially connected to transmit a first received signal in a first direction along a signal path, and transmit a second received signal in a second direction opposite to the first direction along the signal path; the first received signal comprises a first signal or a second signal, wherein the first signal is a signal that triggers the capture delay line to perform time capture, and the second signal is a signal other than the first signal; the second received signal comprises the second signal or a second clock signal;
[0037] a signal processing module, receiving an input signal and outputting the first received signal to the capture delay line in a first direction based on whether the input signal includes an along signal; the first received signal includes a first signal or a second signal;
[0038] A clock processing module receives an input signal and the first clock signal provided by an oscillation delay line, processes the first clock signal based on whether the input signal contains an edge signal to obtain a second received signal, and outputs the second received signal to the capture delay line in a second direction.
[0039] In a possible implementation manner of the second aspect, the clock processing module includes: a first preprocessing module, a first inverter, and a first multiplexer;
[0040] a first inverter, receiving the first clock signal, generating an inverted signal of the first clock signal according to the first clock signal, and transmitting the inverted signal of the first clock signal to the first multiplexer;
[0041] The first preprocessing module receives an input signal and a first clock signal, determines a second received signal according to the input signal, and controls the first multiplexing to output the second received signal to the capture delay line in a second direction;
[0042] The first multiplexer receives the first clock signal and an inverted signal of the first clock signal transmitted by the first inverter, and outputs the second received signal to the capture delay line in a second direction under the control of the first preprocessing module.
[0043] In a possible implementation manner of the second aspect, the first clock signal and the inverted signal of the first clock signal include a second signal;
[0044] The first preprocessing module, when detecting that the input signal does not include an edge signal, determines the second signal as the second received signal, and controls the first multiplexer to alternately output the first clock signal and the inverted signal of the first clock signal to continuously output the second received signal to the capture delay line in a second direction; or
[0045] When it is detected that the input signal contains an edge signal, the signal currently output by the first multiplexer is determined as a second received signal, and the first multiplexer is controlled to output the second received signal to the capture delay line in a second direction; wherein the signal currently output by the first multiplexer is a first clock signal or an inverted signal of the first clock signal.
[0046] In a possible implementation manner of the second aspect, the first multiplexer receives a second signal;
[0047] The first preprocessing module, when detecting that the input signal does not include an edge signal, determines the second signal as a second received signal, and controls the first multiplexer to output the second signal received by the first multiplexer to the capture delay line in a second direction;
[0048] When it is detected that the input signal contains an edge signal and the first clock signal or the inverted signal of the first clock signal is determined as the second received signal, the first multiplexer is controlled to output the first clock signal or the inverted signal of the first clock signal received by the first multiplexer to the capture delay line in a second direction.
[0049] In a possible implementation manner of the second aspect, the signal processing module includes a second preprocessing module;
[0050] The second pre-processing module receives an input signal and outputs the first received signal to the capture delay line in a first direction based on whether the input signal contains an along signal; the first received signal includes a first signal or a second signal.
[0051] In a possible implementation of the second aspect, the signal processing module further includes: a second inverter and a second multiplexer;
[0052] a second inverter, receiving the input signal, generating an inverted signal of the input signal according to the input signal, and transmitting the inverted signal of the input signal to the second multiplexer;
[0053] The second preprocessing module receives an input signal, and controls the second multiplexer to output the first received signal according to whether the input signal contains an edge signal; the first received signal includes the input signal or an inverted signal of the input signal;
[0054] The second multiplexer receives the input signal and an inverted signal of the input signal transmitted by the second inverter, and outputs the first received signal under the control of the second pre-processing module.
[0055] In a possible implementation manner of the second aspect, the second preprocessing module receives an input signal, and when detecting that the input signal includes an edge signal, outputs the first signal to the capture delay line in a first direction within the duration of the edge signal; or
[0056] When it is detected that the input signal does not include an edge signal, the second signal is output to the capture delay line in a first direction.
[0057] A possible implementation of the second aspect further includes a control module;
[0058] The control module receives the signals output by the m capture delay elements in the first direction and / or the second direction, and outputs a control signal to the second preprocessing module when detecting that the signals output by the m capture delay elements in the first direction and / or the second direction remain unchanged;
[0059] The second preprocessing module receives an input signal, and when detecting that the input signal includes an edge signal, outputs the first signal to the capture delay line in a first direction until receiving the control signal, and when receiving the control signal, continuously outputs the second signal to the capture delay line; or
[0060] The second signal is output to the capture delay line in a first direction when it is detected that the input signal does not include an edge signal.
[0061] A possible implementation of the second aspect further includes: an oscillation counter;
[0062] The oscillation counter counts the first clock signal output by the oscillation delay line.
[0063] In a third aspect, an embodiment of the present application provides a microprocessor chip, comprising the circuit described in any one of the first aspect above, or comprising the circuit described in any one of the second aspect above.
[0064] Using the solution provided in the embodiment of the present application, the oscillation delay line includes a logic gate and n delay elements, the n delay elements are electrically connected in sequence, the first input end of the logic gate is electrically connected to the output end of the nth delay element, the second input end of the logic gate is used to receive an enable signal, the output end of the logic gate is electrically connected to the first input end of the first delay element, and the oscillation delay line is used to periodically output a first clock signal; the capture delay line includes m capture delay elements, the m capture delay elements are electrically connected in sequence, wherein the first output end and the second input end of the first capture delay element are electrically connected to the first input end and the second output end of the second capture delay element respectively, and the first capture delay element and the second capture delay element are two adjacent capture delay elements. The capture delay line is used for time capture; the output end of the signal processing module is electrically connected to the first input end of the first capture delay element of the capture delay line, the input end is used to receive the input signal, and the signal processing module is used to output the first received signal to the first input end of the first capture delay element based on whether the received input signal contains an edge signal, wherein the first received signal includes the first signal or the second signal; the first input end of the clock processing module is electrically connected to the output end of the nth delay element, the second input end is used to receive the input signal, and the output end is electrically connected to the second input end of the mth capture delay element of the capture delay line, and the clock processing module is used to process the first clock signal based on whether the received input signal contains an edge signal to obtain a second received signal, and output the second received signal to the second input end of the mth capture delay element; the second received signal includes the second clock signal or the second signal. In an embodiment of the present application, the signal processing module determines the first received signal by detecting whether the input signal contains an edge signal, and the clock processing module determines the second received signal by detecting whether the input signal contains an edge signal, so that the capture delay line performs time capture according to the signal received at the input end. In this way, when there is an edge signal in the input signal, the edge signal in the input signal can be captured in time through the capture delay line to determine the duration of the pulse signal. That is, in the embodiment of the present application, only one capture delay line is required to achieve the time capture of the edge signal in the input signal, reducing the occupied area and cost of the pulse signal capture circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0066] Figure 1 A schematic diagram of the structure of a pulse signal capture circuit provided in an embodiment of the present application;
[0067] Figure 2a A schematic diagram of the structure of another pulse signal capture circuit provided in an embodiment of the present application;
[0068] Figure 2b A schematic diagram of the structure of another pulse signal capture circuit provided in an embodiment of the present application;
[0069] Figure 3a A schematic diagram of a pulse signal capture circuit provided in an embodiment of the present application;
[0070] Figure 3b A schematic diagram of another pulse signal capture circuit provided in an embodiment of the present application;
[0071] Figure 3c A schematic diagram of another pulse signal capture circuit provided in an embodiment of the present application;
[0072] Figure 4 A schematic diagram of the structure of another pulse signal capture circuit provided in an embodiment of the present application;
[0073] Figure 5 A schematic diagram of the structure of another pulse signal capture circuit provided in an embodiment of the present application;
[0074] Figure 6 A schematic diagram of the structure of another pulse signal capture circuit provided in an embodiment of the present application;
[0075] Figure 7 A schematic diagram of the structure of another pulse signal capture circuit provided in an embodiment of the present application;
[0076] Figure 8 A schematic diagram of the structure of another pulse signal capture circuit provided in an embodiment of the present application;
[0077] Fig. 9 A schematic diagram of the structure of another pulse signal capture circuit provided in an embodiment of the present application;
[0078] Fig.10 A schematic diagram of another pulse signal capture circuit provided in an embodiment of the present application;
[0079] Fig.11 A schematic diagram of another scenario of a pulse signal capture circuit provided in an embodiment of the present application. DETAILED DESCRIPTION
[0080] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0081] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0082] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0083] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0084] In the related art, the capture circuit of the pulse signal is used to count the integer part of the pulse signal by setting an oscillation line, and the oscillation line is connected to the oscillator through a plurality of delay elements set thereon. The capture circuit of the pulse signal is used to count the decimal part of the pulse signal by setting two capture delay lines and a multiplexer. Although the capture circuit of the above-mentioned pulse signal can capture the rising edge and the falling edge of the pulse signal, the duration of the pulse signal has been determined. However, the capture circuit of the above-mentioned pulse signal needs to set two capture delay lines, resulting in that the capture circuit of the pulse signal occupies a large area and has a high cost.
[0085] In response to the above problems, an embodiment of the present application provides a pulse signal capture circuit and chip, wherein an oscillation delay line includes a logic gate and n delay elements, the n delay elements are electrically connected in sequence, the first input end of the logic gate is electrically connected to the output end of the nth delay element, the second input end of the logic gate is used to receive an enable signal, the output end of the logic gate is electrically connected to the first input end of the first delay element, and the oscillation delay line is used to periodically output a first clock signal; the capture delay line includes m capture delay elements, the m capture delay elements are electrically connected in sequence, wherein the first output end and the second input end of the first capture delay element are electrically connected to the first input end and the second output end of the second capture delay element respectively, and the first capture delay element and the second capture delay element are two adjacent capture delay elements. The capture delay line is used for time capture; the output end of the signal processing module is electrically connected to the first input end of the first capture delay element of the capture delay line, the input end is used to receive the input signal, and the signal processing module is used to output the first received signal to the first input end of the first capture delay element based on whether the received input signal contains an edge signal, wherein the first received signal includes the first signal or the second signal; the first input end of the clock processing module is electrically connected to the output end of the nth delay element, the second input end is used to receive the input signal, and the output end is electrically connected to the second input end of the mth capture delay element of the capture delay line, and the clock processing module is used to process the first clock signal based on whether the received input signal contains an edge signal to obtain a second received signal, and output the second received signal to the second input end of the mth capture delay element; the second received signal includes the second clock signal or the second signal. In an embodiment of the present application, the signal processing module determines the first received signal by detecting whether the input signal contains an edge signal, and the clock processing module determines the second received signal by detecting whether the input signal contains an edge signal, so that the capture delay line performs time capture according to the signal received at the input end. In this way, when there is an edge signal in the input signal, the edge signal in the input signal can be captured in time through the capture delay line to determine the duration of the pulse signal. That is, in the embodiment of the present application, only one capture delay line is required to achieve the time capture of the edge signal in the input signal, reducing the occupied area and cost of the pulse signal capture circuit. The following is a detailed description.
[0086] See also Figure 1 , is a schematic diagram of the structure of a pulse signal capture circuit provided in an embodiment of the present application. Figure 1 As shown, the pulse signal capture circuit includes:
[0087] The oscillating delay line 10 includes a logic gate 101 and n delay elements 102; the n delay elements 102 are electrically connected in sequence, the first input end of the logic gate 101 is electrically connected to the output end of the nth delay element 102, the second input end of the logic gate 101 is used to receive an enable signal, and the output end of the logic gate 101 is electrically connected to the first input end of the first delay element 102; the oscillating delay line 10 is used to periodically output a first clock signal. n is an integer greater than 0.
[0088] The capture delay line 11 comprises m capture delay elements 110, wherein the m capture delay elements 110 are electrically connected in sequence, wherein the first output end and the second input end of the first capture delay element 110 are electrically connected to the first input end and the second output end of the second capture delay element 110 respectively; the first capture delay element 110 and the second capture delay element 110 are two adjacent capture delay elements 110; the capture delay line 11 is used to perform time capture according to the signal received at the first input end of the first capture delay element 110 and the second input end of the mth capture delay element 110. m is an integer greater than 0.
[0089] A signal processing module 12, wherein the input end of the signal processing module 12 is used to receive an input signal, and the output end is electrically connected to the first input end of the first capture delay element 110 of the capture delay line 11; the signal processing module 12 is used to output a first received signal to the first input end of the first capture delay element 110 based on whether the received input signal contains an edge signal; the first received signal includes a first signal or a second signal; the first signal is a signal that triggers the capture delay line 11 to perform time capture, and the second signal is a signal other than the first signal, which is a signal that does not trigger the capture delay line 11 to perform time capture.
[0090] A clock processing module 13, wherein a first input terminal of the clock processing module 13 is electrically connected to an output terminal of the nth delay element 102, a second input terminal is used to receive an input signal, and an output terminal is electrically connected to a second input terminal of the mth capture delay element 110 of the capture delay line 11; the clock processing module 13 is used to process a first clock signal based on whether the received input signal contains an edge signal to obtain a second received signal, and output the second received signal to the second input terminal of the mth capture delay element 110; the second received signal includes a second clock signal or a second signal.
[0091] In an embodiment of the present application, the pulse signal capture circuit includes an oscillation delay line 10, a capture delay line 11, a signal processing module 12 and a clock processing module 13. Among them, the n delay elements 102 in the oscillation delay line 10 are connected in sequence, the output end of the logic gate 101 is connected to the first input end of the first delay element 102, and the first input end of the logic gate 101 is connected to the output end of the nth delay element 102. In this way, the logic gate 101 and the n delay elements 102 form a ring-shaped oscillation delay line 10. After the logic gate 101 performs a logical operation according to the signals received at its first input end and the second input end, a first clock signal is formed and output to the first delay element 102, and is transmitted in turn from the second delay element 102 to the nth delay element 102, and output through the nth delay element 102. In an embodiment of the present application, the oscillation delay line 10 can control the start or stop of the oscillation delay line 10 by adjusting the enable signal at the second input end of the logic gate 101, thereby achieving the periodic output of the first clock signal.
[0092] The first input end of the clock processing module 13 is electrically connected to the output end of the nth delay element 102. After the nth delay element 102 outputs the first clock signal, the clock processing module 13 can receive the first clock signal output by the nth delay element 102 through its first input end. The second input end of the clock processing module 13 receives an input signal. The clock processing module 13 detects the input signal received by the second input end to detect whether it contains an edge signal. When it is detected that the input signal contains an edge signal, it is necessary to trigger the capture delay line 11 to perform time capture on the edge signal. At this time, the clock processing module 13 can obtain the second clock signal according to the first clock signal, and transmit the second clock signal as the second received signal to the capture delay line 11. For example, the clock processing module 13 can use the first clock signal or the inverted signal of the first clock signal as the second clock signal. When it is detected that the input signal does not contain an edge signal, it is determined that the capture delay line 11 does not need to perform time capture. At this time, the clock processing module 13 processes the first clock signal to obtain the second signal, and transmits the second signal as the second received signal to the capture delay line 11.
[0093] The input end of the signal processing module 12 receives an input signal, and the signal processing module 12 can detect the input signal to determine whether the input signal contains an edge signal. When the signal processing module 12 detects that the input signal contains an edge signal, it is necessary to trigger the capture delay line 11 to time-capture the edge signal. At this time, the signal processing module 12 can generate a first signal or directly use the input signal as the first signal, and transmit the first signal as the first received signal to the capture delay line 11. When the signal processing module 12 detects that the input signal does not contain an edge signal, there is no need to trigger the capture delay line 11 to time-capture the edge signal. At this time, the signal processing module 12 can generate a second signal, and transmit the second signal as the first received signal to the capture delay line 11.
[0094] The capture delay line 11 includes m capture delay elements 110. The first output end and the second input end of the first capture delay element 110 are electrically connected to the first input end and the second output end of the second capture delay element 110, respectively. That is, for each capture delay element 110 in the m capture delay elements 110, along the first direction, the first output end of the capture delay element 110 is connected to the first input end of the next capture delay element 110, and the second output end of the capture delay element 110 is connected to the second input end of the previous capture delay element 110. The first input end of the capture delay element 110 is connected to the first output end of the previous capture delay element 110, and the second input end of the capture delay element 110 is connected to the second output end of the next capture delay element 110. The output end of the signal processing module 12 is connected to the first input end of the first capture delay element 110, and the second input end of the mth capture delay element 110 is connected to the output end of the clock processing module 13. The capture delay line 11 receives the first received signal transmitted by the signal processing module 12 through the first input end of the first capture delay element 110, and receives the second received signal transmitted by the clock processing module 13 through the second input end of the mth capture delay element 110. After the capture delay line 11 receives the first received signal through the first input end of the first capture delay element 110, the m capture delay elements 110 in the capture delay line 11 transmit the first received signal in a first direction along the signal path. After the capture delay line 11 receives the second received signal through the second input end of the mth capture delay element 110, the m capture delay elements 110 in the capture delay line 11 transmit the second received signal in a second direction opposite to the first direction along the signal path. Since the m capture delay elements 110 are electrically connected in sequence, and the output end of the signal processing module 12 is connected to the first input end of the first capture delay element 110, the second input end of the mth capture delay element 110 is connected to the output end of the clock processing module 13. Therefore, when the first receiving signal is output at the output end of the signal processing module 12, after the first input end of the first capture delay element 110 of the capture delay line 11 receives the first receiving signal, the first receiving signal is transmitted in the m capture delay elements 110 in the order in which the first input ends and the first output ends of the m capture delay elements 110 are electrically connected in sequence. That is, the first receiving signal is transmitted along the order in which the m capture delay elements 110 in the capture delay line 11 are electrically connected in the first direction. When the second receiving signal is output at the output end of the clock processing module 13, after the second input end of the mth capture delay element 110 of the capture delay line 11 receives the second receiving signal, the second receiving signal is transmitted in the m capture delay elements 110 in the reverse order in the first direction. That is, the second receiving signal is transmitted along the order in which the m capture delay elements 110 in the capture delay line 11 are electrically connected in the second direction.
[0095] Since when the input signal includes an edge signal, the first received signal output by the signal processing module 12 is the first signal, and the second received signal output by the clock processing module 13 is the second clock signal, at this time, the first signal received by the capture delay line 11 is transmitted along the first direction of the m capture delay elements 110 in the capture delay line 11. The second clock signal received by the capture delay line 11 is transmitted along the second direction of the m capture delay elements 110 in the capture delay line 11, which is opposite to the first direction. In this way, the time information of the edge signal can be determined according to the meeting position of the first signal and the second clock signal in the capture delay line 11, thereby realizing the time capture of the edge signal.
[0096] When the input signal packet does not contain an edge signal, the first received signal output by the signal processing module 12 is the second signal, and the second received signal output by the clock processing module 13 is the second signal. Since the second signal is a signal other than the signal that triggers the capture delay line 11 to perform time capture, the second signal is a signal that does not trigger the capture delay line 11 to perform time capture. The first input end of the first capture delay element 110 of the capture delay line 11 and the second input end of the mth capture delay element 110 both receive the second signal, and at this time, the capture delay line 11 does not perform time capture, or the captured data is invalid data.
[0097] As a possible implementation method, the edge signal of the input signal refers to the rising edge signal and the falling edge signal in the input signal. That is, when a rising edge signal appears in the input signal, it is determined that the input signal contains an edge signal; when a falling edge signal appears in the input signal, it can also be determined that the input signal has an edge signal. At this time, the signal processing module 12 can output the first signal when it detects that a rising edge signal or a falling edge signal appears in the input signal, and the clock processing module 13 can output the second clock signal when it detects that a rising edge signal or a falling edge signal appears in the input signal. In this way, when a rising edge signal or a falling edge signal appears in the input signal, the pulse signal capture circuit will perform corresponding time capture on the rising edge signal or the falling edge signal in the input signal.
[0098] As a possible implementation, the logic gate 101 may be a NAND gate, so that the output signal of the logic gate 101 can be controlled by controlling the enable signal received at the second input terminal of the logic gate 101, thereby controlling the start and stop of the oscillation delay line 10. Of course, the logic gate 101 may also be other logic operation devices, and the present application does not limit this.
[0099] As a possible implementation, Figure 2a As shown, the clock processing module 13 includes: a first pre-processing module 131 , a first inverter 132 and a first multiplexer 133 .
[0100] The first input end of the first preprocessing module 131 is used to receive an input signal. The second input end of the first preprocessing module 131 is electrically connected to the output end of the nth delay element 102 . The output end of the first preprocessing module 131 is electrically connected to the control end of the first multiplexer 133 .
[0101] The input end of the first inverter 132 and the first input end of the first multiplexer 133 are both electrically connected to the output end of the nth delay element 102, the output end of the first inverter 132 is electrically connected to the second input end of the first multiplexer 133, and the output end of the first multiplexer 133 is electrically connected to the second input end of the mth capture delay element 110 of the capture delay line 11.
[0102] The first pre-processing module 131 is used to control the first multiplexer 133 to output a second received signal according to whether the received input signal contains an edge signal.
[0103] In the embodiment of the present application, in order to convert the first clock signal into the second receiving signal, the clock processing module 13 includes a first preprocessing module 131, a first inverter 132 and a first multiplexer 133. The input end of the first inverter 132 and the first input end of the first multiplexer 133 are both electrically connected to the output end of the nth delay element 102, the output end of the first inverter 132 is electrically connected to the second input end of the first multiplexer 133, and the output end of the first multiplexer 133 is electrically connected to the second input end of the mth capture delay element 110 of the capture delay line. The first input end of the first preprocessing module 131 is used to receive an input signal, the second input end of the first preprocessing module 131 is electrically connected to the output end of the nth delay element 102, and the output end of the first preprocessing module 131 is electrically connected to the control end of the first multiplexer 133. In this way, the first input end of the first multiplexer 133 can receive the first clock signal, and the second input end can receive the inverted signal of the first clock signal. The first multiplexer 133 may output the first clock signal or the inverted signal of the first clock signal under the control of the first preprocessing module 131. That is, in the embodiment of the present application, the first clock signal or the inverted signal of the first clock signal may be transmitted to the capture delay line 11 as the second received signal.
[0104] That is to say, after the first preprocessing module 131 receives the input signal through the first input terminal, it can detect the input signal to detect whether the input signal contains an edge signal. When the input signal does not detect the edge signal, the clock processing module 13 needs to output the second signal to the capture delay line 11. Since the second signal is a signal that does not trigger the capture delay line 11 to capture time, when the capture delay line 11 receives a high-level signal for time capture, the second signal is a low-level signal. When the capture delay line 11 receives a low-level signal for time capture, the second signal is a high-level signal. Therefore, when the first preprocessing module 131 detects that the input signal does not contain an edge signal, it is necessary to control the first multiplexer 133 to continuously output the second signal. Since the first input terminal of the first multiplexer 133 receives the first clock signal, and the second input terminal receives the inverted signal of the first clock signal. The first clock signal is a signal that switches high and low level signals at a certain frequency. Therefore, the inverted signal of the first clock signal is also a signal that switches high and low level signals at a certain frequency. That is, the signals received by the first input terminal and the second input terminal of the first multiplexer 133 are both signals in which high and low level signals are switched at a certain frequency. Therefore, when the first multiplexer 133 needs to output the second signal, the first pre-processing module 131 needs to control the first multiplexer 133 to alternately output the first clock signal and the second signal in the inverted signal of the first clock signal according to the first clock signal received by the second input terminal, so as to achieve the purpose of continuously outputting the second signal.
[0105] For example, when the capture delay line 11 receives a high-level signal for time capture, the first preprocessing module 131 needs to control the first multiplexer 133 to continuously output the second signal when it detects that the input signal does not include an edge signal. At this time, the second signal can be a low-level signal. The first preprocessing module 131 determines which input end of the first multiplexer 133 receives the low-level signal according to the first clock signal received at its second input end, and controls the first multiplexer 133 to output the low-level signal. That is, when the first preprocessing module 131 detects that the input signal does not include an edge signal, the first preprocessing module 131 controls the first multiplexer 133 to output the first clock signal or the inverted signal of the first clock signal according to whether the first clock signal received at its second input end is a high-level signal or a low-level signal. When the first clock signal is a high-level signal, the inverted signal of the first clock signal is a low-level signal. At this time, the first preprocessing module 131 controls the first multiplexer 133 to output the inverted signal of the first clock signal received at the second input end. When the first clock signal is a low level signal, the first preprocessing module 131 controls the first multiplexer 133 to output the first clock signal received by the first input terminal. Since the first preprocessing module 131 needs to control the first multiplexer 133 to continuously output a low level signal when detecting that the input signal does not contain an edge signal, and the first clock signal and the inverted signal of the first clock signal are both signals of high and low level signal changes, such as Figure 3a As shown, therefore, the first pre-processing module 131 controls the first multiplexer 133 to alternately output the signals received by the first input terminal and the second input terminal according to the first clock signal received by the second input terminal, so as to output a low-level signal. That is to say, when the first clock signal is a high-level signal, the inverted signal of the first clock signal is a low-level signal. At this time, the first pre-processing module 131 needs to control the first multiplexer 133 to output the inverted signal of the first clock signal received by the second input terminal, so as to output a low-level signal. When the first clock signal changes from a high-level signal to a low-level signal, the inverted signal of the first clock signal changes to a high-level signal. At this time, the first pre-processing module 131 needs to control the first multiplexer 133 to output the first clock signal received by the first input terminal, so as to output a low-level signal.
[0106] Similarly, when the capture delay line 11 receives a low-level signal for time capture, the first preprocessing module 131 needs to determine which input end of the first multiplexer 133 receives a high-level signal based on the first clock signal received at its second input end, thereby controlling the first multiplexer 133 to output the signal received at the input end. For details, please refer to the above-mentioned when the capture delay line 11 receives a high-level signal for time capture, the first preprocessing module 131 controls the first multiplexer 133 to output a low-level signal based on the first clock signal received at its second input end, which will not be repeated here.
[0107] When the first preprocessing module 131 detects that the input signal includes an edge signal, the clock processing module 13 needs to output a second clock signal to the capture delay line 11 so that the capture delay line 11 performs time capture of the edge signal according to the second clock signal. At this time, when the first preprocessing module 131 detects that the input signal includes an edge signal, it is necessary to use the signal that the first multiplexer 133 is outputting when the edge signal appears as the second clock signal. The second clock signal is the first clock signal or the inverted signal of the first clock signal. That is, when the first preprocessing module 131 detects that the input signal includes an edge signal, the first preprocessing module 131 locks the signal currently output by the first multiplexer 133, uses the signal currently output by the first multiplexer 133 as the second clock signal, and controls the first multiplexer 133 to output the signal continuously thereafter. For example, when the first preprocessing module 131 detects that the input signal includes an edge signal, the signal currently output by the first multiplexer 133 is the first clock signal, then the first preprocessing module 131 will lock the first clock signal, and use the first clock signal as the second clock signal, and control the first multiplexer 133 to subsequently output the first clock signal received by the first input end of the first multiplexer 133. When the first preprocessing module 131 detects that the input signal includes an edge signal, the signal currently output by the first multiplexer 133 is the inverted signal of the first clock signal, then the first preprocessing module 131 will lock the inverted signal of the first clock signal, and use the inverted signal of the first clock signal as the second clock signal, and control the first multiplexer 133 to subsequently output the inverted signal of the first clock signal received by the second input end of the first multiplexer 133.
[0108] As described in the above example, when the second signal is a low-level signal, when the first preprocessing module 131 detects that the input signal does not include an edge signal, the first multiplexer 133 is controlled to output the second signal. When the first preprocessing module 131 detects that the input signal includes an edge signal, if the first clock signal is currently a high-level signal, the inverted signal of the first clock signal is a low-level signal. At this time, the first multiplexer 133 is currently outputting the inverted signal of the first clock signal received at its second input terminal. The first preprocessing module 131 will lock the inverted signal of the first clock signal, use the inverted signal of the first clock signal as the second clock signal, and control the first multiplexer 133 to always output the inverted signal of the first clock signal received at the second input terminal in the future, as shown in FIG. Figure 3b .
[0109] When the first preprocessing module 131 detects that the input signal includes an edge signal, if the first clock signal is currently a low level signal, at this time, the first multiplexer 133 is currently outputting the first clock signal received at its first input terminal. The first preprocessing module 131 will lock the first clock signal, use the first clock signal as the second clock signal, and control the first multiplexer 133 to output the first clock signal received at the first input terminal. Figure 3c shown.
[0110] In this way, the signal received at the second input end of the mth capture delay element 110 input to the capture delay line 11 changes with the change of the second clock signal, and when the second clock signal is a high level signal, the high level signal is continuously transmitted along the second direction.
[0111] As a possible implementation, Figure 2b As shown, the first multiplexer 133 further includes: a third input terminal. The third input terminal of the first multiplexer 133 is used to receive the second signal.
[0112] The first preprocessing module 131 is specifically configured to control the first multiplexer 133 to output the second signal received by the third input terminal when the received input signal does not include an edge signal;
[0113] When the received input signal includes an edge signal, the first multiplexer 133 is controlled to output the first clock signal received by the first input; or, the first multiplexer 133 is controlled to output the inverted signal of the first clock signal received by the second input.
[0114] In this way, the first preprocessing module 131 can control the first multiplexer 133 to output the second received signal according to whether the received input signal contains an edge signal. That is, when the first preprocessing module 131 detects that the input signal does not contain an edge signal, the first multiplexer 133 can be directly controlled to output the second signal received at its third input terminal. When the first preprocessing module 131 detects that the input signal contains an edge signal, the first multiplexer 133 can be directly controlled to output the first clock signal received at its first input terminal, and the first clock signal is output as the second clock signal. Or when the first preprocessing module 131 detects that the input signal contains an edge signal, the first multiplexer 133 can be directly controlled to output the inverted signal of the first clock signal received at its second input terminal, and the inverted signal of the first clock signal is output as the second clock signal.
[0115] In this way, when there is no edge signal in the input signal, the second signal received by the third input terminal of the first multiplexer 133 can be directly selected for output, without frequently switching the signal received by the first input terminal and the signal received by the second input terminal of the first multiplexer 133 as the output signal, thereby reducing the complexity of the circuit.
[0116] As a possible implementation, Figure 4 As shown, each of the m capture delay elements 110 includes a first NAND gate 1101, a trigger 1102, and a second NAND gate 1103. The first input terminal of the first NAND gate 1101 is connected to the first output terminal of the trigger 1102, and the first input terminal of the second NAND gate 1103 is connected to the second output terminal of the trigger 1102.
[0117] The output end of the first NAND gate 1101 of the first capture delay element 110 is connected to the first input end of the trigger 1102 of the second capture delay element 110, and the second input end of the trigger 1102 of the first capture delay element 110 is connected to the output end of the second NAND gate 1103 of the second capture delay element 110. The first capture delay element 110 and the second capture delay element 110 are two adjacent capture delay elements 110.
[0118] In the embodiment of the present application, each of the m capture delay elements 110 is composed of a NAND gate. That is, each capture delay element 110 includes a first NAND gate 1101, a trigger 1102 and a second NAND gate 1103. The trigger 1102 is a NAND gate trigger. At this time, the first input end of the first NAND gate 1101 is connected to the first output end of the trigger 1102, and the first input end of the second NAND gate 1103 is connected to the second output end of the trigger 1102. The first input end of the trigger 1102 is connected to the output end of the first NAND gate 1101 of the previous capture delay element 110, and the second input end of the trigger 1102 is connected to the output end of the second NAND gate 1103 of the next capture delay element 110. In this way, when the first input terminal of the trigger 1102 of each capture delay element 110 receives a high level signal and the second input terminal of the trigger 1102 receives the second signal, that is, a low level signal or a low level signal in the second clock signal, the output terminal of the first NAND gate 1101 outputs a high level signal. Similarly, when the second input terminal of the trigger 1102 of each capture delay element 110 receives a high level signal and the first input terminal of the trigger 1102 receives the second signal, that is, a low level signal, the output terminal of the second NAND gate 1103 outputs a high level signal. When it is detected that the input signal does not include an edge signal, and the capture delay line 11 does not receive the high level signal of the first signal and the second clock signal, the signals received by the first input terminal and the second input terminal of the trigger 1102 are low level signals, and the first output terminal and the second output terminal of the trigger 1102 output high level signals. After detecting the edge signal, the two ends of the capture delay line 11 receive the first signal and the second clock signal respectively. When the high-level signal in the first signal and the second clock signal meets the first flip-flop 1102 in the capture delay line 11, the signal outputted from the first output end of the first flip-flop 1102 depends on which of the first signal and the second clock signal is first transmitted to the first flip-flop 1102. If the first signal is first transmitted to the first flip-flop 1102, the first output end outputs a low-level signal, and the output end of the first NAND gate 1101 connected to the first output end of the first flip-flop 1102 outputs a high-level signal. If the second clock signal is first transmitted to the first flip-flop 1102, the first output end outputs a high-level signal, and the output end of the first NAND gate 1101 connected to the first output end of the first flip-flop 1102 outputs a low-level signal.
[0119] When the first signal is first transmitted to the first trigger 1102, the output end of the first NAND gate 1101 connected to the first output end of the first trigger 1102 outputs a high level signal. The output end of the first NAND gate 1101 is connected to the first input end of the next trigger 1102, so the input signal received by the first input end of the next trigger 1102 is already a high level signal, and the signal received by the second input end of the next trigger 1102 is also a high level signal, then the first NAND gate 1101 connected to the first output end of the next trigger 1102 keeps outputting a low level signal. At this time, the signals output from the output ends of the first NAND gates 1101 of the m capture delay elements 110 in the capture delay line 11 remain unchanged, so that time capture can be achieved through the signals output from the output ends of the first NAND gates 1101 of the m capture delay elements 110.
[0120] It should be noted that in the embodiment of the present application, in order not to affect the transmission of the signals received by the two input ends of the capture delay line 11, the second input end of the first NAND gate 1101 and the second input end of the second NAND gate 1103 in the m capture delay elements 110 are both used to receive high-level signals, or to connect logic gates or logic circuits that output high-level signals, and the present application does not impose any restrictions on this.
[0121] For example, the m capture delay elements 110 included in the capture delay line 11 are all composed of NAND gates, and the specific structure is as follows: Figure 4 As shown. At this time, when the input end of the capture delay line 11 receives a high-level signal, time capture is performed. When the first input end and the second input end of the trigger 1102 of the first capture delay element 110 of the capture delay line 11 do not receive a high-level signal, it is considered that a low-level signal is received. At this time, the first output end of the trigger 1102 outputs a high-level signal, the first input end of the first NAND gate 1101 receives a high-level signal, and the second input end of the first NAND gate 1101 receives a high-level signal, then the output end of the first NAND gate 1101 outputs a low-level signal and is transmitted to the first input end of the trigger 1102 of the second capture delay element 110. Similarly, when the first input end of the trigger 1102 of the second capture delay element 110 receives a low-level signal and the second input end does not receive a high-level signal, it is considered that a low-level signal is received. At this time, the first output terminal of the trigger 1102 outputs a high-level signal, the first input terminal of the first NAND gate 1101 receives a high-level signal, and the second input terminal of the first NAND gate 1101 receives a high-level signal, then the output terminal of the first NAND gate 1101 outputs a low-level signal, and is transmitted to the first input terminal of the trigger 1102 of the third capture delay element 110. By analogy, the m capture delay elements 110 in the capture delay line 11 transmit the signal received by the first input terminal of the trigger 1102 of the first capture delay element 110 in the first direction of signal transmission.
[0122] When neither the first input terminal nor the second input terminal of the trigger 1102 of the m-th capture delay element 110 receives a high-level signal, it is considered that a low-level signal is received. At this time, the second output terminal of the trigger 1102 outputs a high-level signal, the first input terminal of the second NAND gate 1103 receives a high-level signal, and the second input terminal of the second NAND gate 1103 receives a high-level signal, then the output terminal of the second NAND gate 1103 outputs a low-level signal and transmits it to the second input terminal of the trigger 1102 of the m-1-th capture delay element 110. Similarly, if the second input terminal of the trigger 1102 of the m-1-th capture delay element 110 receives a low-level signal, and the second input terminal does not receive a high-level signal, it is considered that a low-level signal is received. At this time, the second output terminal of the trigger 1102 outputs a high-level signal, the first input terminal of the second NAND gate 1103 receives a high-level signal, and the second input terminal of the second NAND gate 1103 receives a high-level signal, then the output terminal of the second NAND gate 1103 outputs a low-level signal, and is transmitted to the second input terminal of the trigger 1102 of the m-2 th capture delay element 110. By analogy, the m capture delay elements 110 in the capture delay line 11 transmit the signal received at the second input terminal of the trigger 1102 of the m th capture delay element 110 in a second direction opposite to the first direction of signal transmission.
[0123] After receiving the input signal at the first input end of the signal processing module 12 and the second input end of the clock processing module 13, the signal processing module 12 and the clock processing module 13 detect whether the input signal contains an edge signal. When the input signal does not contain an edge signal, the signal processing module 12 can input a second signal to the first input end of the first capture delay element 110 of the capture delay line 11. At this time, the second signal can be a low-level signal, and the low-level signal received at the first input end of the first capture delay element 110 of the capture delay line 11 is transmitted in the first direction as described in the transmission process. The clock processing module 13 can input a second signal to the second input end of the mth capture delay element 110 of the capture delay line 11. At this time, the second signal can be a low-level signal, and the low-level signal received at the second input end of the mth capture delay element 110 of the capture delay line 11 is transmitted in the second direction as described in the transmission process.
[0124] When an edge signal appears in the input signal, for example, a potential change occurs in the signal, the signal processing module 12 can input a first signal to the first input end of the first capture delay element 110 of the capture delay line 11. At this time, the first signal can be an edge signal or other high-level signals different from the edge signal. The first input end of the first capture delay element 110 of the capture delay line 11 is the first input end of the trigger 1102 of the first capture delay element 110, which receives the first signal output by the signal processing module 12. After the first input terminal of the trigger 1102 of the first capture delay element 110 receives the first high-level signal, and because the second input terminal of the trigger 1102 receives the second signal output by the clock processing module 13 or the second NAND gate 1103 of the next capture delay element 110, that is, a low-level signal, before the edge signal appears, the first output terminal of the trigger 1102 outputs a low-level signal, the first input terminal of the first NAND gate 1101 receives the low-level signal, and the second input terminal receives the high-level signal, the output terminal of the first NAND gate 1101 outputs a high-level signal, and transmits it to the first input terminal of the trigger 1102 of the second capture delay element 110. Similarly, when the first input terminal of the trigger 1102 of the second capture delay element 110 receives the high-level signal, the output terminal of the first NAND gate 1101 of the second capture delay element 110 outputs a high-level signal. By analogy, the m capture delay elements 110 in the capture delay line 11 transmit the first signal received by the first input terminal of the trigger 1102 of the first capture delay element 110 in the first direction of signal transmission.
[0125] When an edge signal appears in the input signal, for example, a potential change occurs in the signal, the clock processing module 13 can input a second clock signal to the second input end of the mth capture delay element 110 of the capture delay line 11. The second input end of the mth capture delay element 110 of the capture delay line 11 is the second input end of the trigger 1102 of the mth capture delay element 110 that receives the second clock signal. Since the second clock signal is a signal that changes from a high level signal to a low level signal, when the second clock signal is a high level signal, after the second input terminal of the trigger 1102 of the m-th capture delay element 110 receives a high level signal, and since before the edge signal appears, the first input terminal of the trigger 1102 receives the second signal output by the signal processing module 12 or the first NAND gate 1101 of the previous capture delay element 110, i.e., a low level signal, the second output terminal of the trigger 1102 outputs a low level signal, the first input terminal of the second NAND gate 1103 receives a low level signal, the second input terminal receives a high level signal, the output terminal of the second NAND gate 1103 outputs a high level signal, and is transmitted to the second input terminal of the trigger 1102 of the m-1-th capture delay element 110. Similarly, if the second input terminal of the trigger 1102 of the m-1-th capture delay element 110 receives a high level signal, the output terminal of the second NAND gate 1103 of the m-1-th capture delay element 110 outputs a high level signal. By analogy, the m capture delay elements 110 in the capture delay line 11 transmit the second clock signal received by the second input terminal of the trigger 1102 of the mth capture delay element 110 in the second direction of signal transmission. In the capture delay line 11, when the first signal transmitted in the first direction meets the second clock signal transmitted in the second direction, the first input terminal of the trigger 1102 of the capture delay element 110 that meets receives a high level signal, and the second input terminal of the trigger 1102 also receives a high level signal. At this time, the signal output by the output terminal of the first NAND gate 1101 of the capture delay element 110 that meets remains unchanged, wherein the signal output by the output terminal of the first NAND gate 1101 of the capture delay element 110 that meets depends on which of the two input terminals of the trigger 1102 inputs the high level signal first. In addition, the signal output by the output terminal of the first NAND gate 1101 of the other m-1 capture delay elements 110 of the capture delay line 11 no longer changes. That is, when the first signal meets the second clock signal, the signal outputted from the output end of the first NAND gate 1101 of the m capture delay elements 110 in the capture delay line 11 no longer changes. In this way, the time capture of the edge signal can be performed according to the position of the encounter.
[0126] As a possible implementation, Figure 5As shown, each of the n delay elements 102 includes a third NAND gate 1021 and a fourth NAND gate 1022. The output end of the third NAND gate 1021 is connected to the first input end of the fourth NAND gate 1022; the output end of the fourth NAND gate 1022 of the first delay element is connected to the first input end of the third NAND gate 1021 of the second delay element, and the first delay element and the second delay element are two adjacent delay elements 102.
[0127] In the embodiment of the present application, for the convenience of implementation, each of the n delay elements 102 is composed of a NAND gate. That is, for each delay element 102, the delay element 102 includes a third NAND gate 1021 and a fourth NAND gate 1022, and the output end of the third NAND gate 1021 is connected to the first input end of the fourth NAND gate 1022, the first input end of the third NAND gate 1021 of the delay element 102 is connected to the output end of the fourth NAND gate 1022 of the previous delay element 102, and the output end of the fourth NAND gate 1022 of the delay element 102 is connected to the first input end of the third NAND gate of the next delay element 102. In this way, the delay element 102 can delay the output of the input signal.
[0128] It should be understood that for each delay element 102 , in order not to affect the output of the fourth NAND gate 1022 of the third NAND gate 1021 , the second input terminal of the third NAND gate 1021 and the second input terminal of the fourth NAND gate are both used to receive a high level signal.
[0129] As a possible implementation, for the convenience of implementation, the number of delay elements 102 in the oscillation delay line 10 is the same as the number of capture delay elements 110 in the capture delay line 11 , that is, the values of n and m are equal.
[0130] As a possible implementation, Figure 6 As shown, the signal processing module 12 includes a second pre-processing module 121 .
[0131] The input end of the second preprocessing module 121 is used to receive an input signal, and the output end is electrically connected to the first input end of the first capture delay element 110 of the capture delay line 11; the second preprocessing module 121 is used to output a first received signal to the first input end of the first capture delay element 110 based on whether the received input signal contains an edge signal.
[0132] At this time, the input end of the second preprocessing module 121 included in the signal processing module 12 receives the input signal. After receiving the input signal, it can be detected whether the input signal contains an edge signal, and whether the first signal is used as the first received signal or the second signal is used as the first received signal is determined according to the detection result. In some embodiments, when it is detected that the input signal contains an edge signal, the input signal can be directly used as the first signal, or a signal that can trigger the capture delay line 11 for time capture can be regenerated according to the input signal, and the signal is used as the first signal, and the determined first signal is determined as the first received signal, and transmitted to the first input end of the first capture delay element 110 of the capture delay line 11. Alternatively, when it is detected that the input signal does not contain an edge signal, a second signal is generated, wherein the second signal is different from the first signal. And the second signal is transmitted to the first input end of the first capture delay element 110 of the capture delay line 11 as the first received signal.
[0133] As a possible implementation, Figure 7 As shown, the signal processing module 12 further includes: a second inverter 122 and a second multiplexer 123 .
[0134] The input end of the second inverter 122 and the first input end of the second multiplexer 123 are both used to receive input signals, the output end of the second inverter 122 is electrically connected to the second input end of the second multiplexer 123, the output end of the second preprocessing module 121 is electrically connected to the control end of the second multiplexer 123, and the output end of the second multiplexer 123 is electrically connected to the first input end of the first capture delay element 110 of the capture delay line 11.
[0135] The second preprocessing module 121 is specifically configured to control the second multiplexer 123 to output the first received signal based on whether the received input signal includes an edge signal.
[0136] The first received signal includes an input signal or an inverted signal of the input signal.
[0137] In the embodiment of the present application, in order to use the input signal as the first signal to improve the consistency of the pulse signal capture circuit, the signal processing module 12 also includes a second inverter 122 and a second multiplexer 123. The input end of the second inverter 122 receives the input signal, and the output end is electrically connected to the second input end of the second multiplexer 123. The first input end of the second multiplexer 123 is used to receive the input signal. The output end of the second multiplexer 123 is electrically connected to the first input end of the first capture delay element 110 of the capture delay line 11, and the control end of the second multiplexer 123 is connected to the second preprocessing module 121. In this way, after the input end of the second preprocessing module 121 receives the input signal, it can detect whether the input signal contains an edge signal. When it is determined that the input signal contains an edge signal, it is necessary to input the first signal to the capture delay line 11. At this time, if the capture delay line 11 is triggered by a high-level signal to perform time capture, the second preprocessing module 121 needs to determine which input end of the second multiplexer 123 to output the signal according to the change of the input signal. Since the edge signal is a potential change signal, there is a situation where the input signal changes from a high level signal to a low level signal, or the input signal changes from a low level signal to a high level signal. Therefore, when the edge signal of the input signal changes the input signal from a high level signal to a low level signal, the inverted signal of the input signal changes from a low level signal to a high level signal. At this time, the second preprocessing module 121 can determine the inverted signal of the input signal as the first signal. The second preprocessing module 121 controls the second multiplexer 123 to output the inverted signal of the input signal received at the second input end to the first input end of the first capture delay element 110 of the capture delay line 11.
[0138] When the edge signal of the input signal changes the input signal from a low level signal to a high level signal, the second pre-processing module 121 can determine the input signal as the first signal. The second pre-processing module 121 controls the second multiplexer 123 to output the input signal received at the first input terminal to the first input terminal of the first capture delay element 110 of the capture delay line 11.
[0139] Similarly, when the capture delay line 11 is triggered by a low-level signal to perform time capture, the second preprocessing module 121 needs to control the second multiplexer 123 to output a low-level signal. For details, please refer to the above-mentioned process of the second preprocessing module 121 controlling the second multiplexer 123 to output a high-level signal, which will not be repeated here.
[0140] When it is determined that the input signal does not contain an edge signal, a second signal needs to be input to the capture delay line 11. At this time, if the capture delay line 11 is triggered by a high-level signal to perform time capture, the second signal is a low-level signal. When the input signal is a low-level signal, the second preprocessing module 121 can determine the input signal as the second signal. The second preprocessing module 121 controls the second multiplexer 123 to output the input signal received at the first input end to the first input end of the first capture delay element 110 of the capture delay line 11.
[0141] When the input signal is a high level signal, the inverted signal of the input signal is a low level signal, and the second pre-processing module 121 can determine the inverted signal of the input signal as the second signal. The second pre-processing module 121 controls the second multiplexer 123 to output the inverted signal of the input signal received at the second input end to the first input end of the first capture delay element 110 of the capture delay line 11.
[0142] Similarly, when the capture delay line 11 is triggered by a low-level signal to perform time capture, the second signal is a high-level signal. At this time, the second preprocessing module 121 needs to control the second multiplexer 123 to output a high-level signal. For details, please refer to the above-mentioned process of the second preprocessing module 121 controlling the second multiplexer 123 to output a low-level signal, which will not be repeated here.
[0143] As a possible implementation method, the second preprocessing module 121 is specifically used to output a first signal to the first input terminal of the first capture delay element 110 when the received input signal includes an edge signal; or to output a second signal to the first input terminal of the first capture delay element 110 when the received input signal does not include an edge signal.
[0144] In the embodiment of the present application, when the second preprocessing module 121 detects that the received input signal contains an edge signal, it needs to output the first signal to the first input end of the first capture delay element 110. At this time, the second preprocessing module 121 can output the first signal to the first input end of the first capture delay element 110 only during the duration of the edge signal. At other times, the second signal is output to the first input end of the first capture delay element 110. In this way, the second preprocessing module 121 does not need to wait until the first signal in the capture delay line 11 meets the second clock signal before outputting the second signal to the first input end of the first capture delay element 110, making the second preprocessing module 121 simpler to implement and reducing the complexity of the pulse signal capture circuit.
[0145] As a possible implementation, in order to more accurately capture the meeting position of the first signal of the capture delay line 11 and the second clock signal, the second pre-processing module 121 can output the first signal to the first input end of the first capture delay element 110 when detecting that the received input signal contains an edge signal, until the signal output from the first output end of each capture delay element 110 in the capture delay line 11 remains unchanged. At this time, Figure 8 As shown, the pulse signal capture circuit further includes: a control module 14.
[0146] The input end of the control module 14 is electrically connected to the first output end and / or the second output end of the m capture delay elements 110, and the output end of the control module 14 is connected to the control end of the second preprocessing module 121. The control module 14 is used to send a control signal to the second preprocessing module 121 according to the signal received at the input end.
[0147] The second preprocessing module 121 is specifically used to output a first signal to the first input end of the first capture delay element 110 when the received input signal includes an edge signal until a control signal is received, and output a second signal to the first input end of the first capture delay element 110 when the control signal is received.
[0148] In the embodiment of the present application, the input end of the control module 14 is electrically connected to the first output end and / or the second input end of the m capture delay elements 110 of the capture delay line 11, and the output end of the control module 14 is connected to the control end of the second preprocessing module 121. In this way, after the input end of the second preprocessing module 121 receives the input signal, it can detect the input signal, and if it is detected that the input signal contains an edge signal, the first signal is output to the first input end of the first capture delay element 110. At this time, the first input end of the first capture delay element 110 in the capture delay line 11 receives the first signal and transmits the first signal in the first direction. The signal output from the first output end of the m capture delay elements 110 in the capture delay line 11 changes with the transmission of the first signal. Similarly, when the clock processing module 13 detects that the input signal contains an edge signal, it inputs the second clock signal to the second input end of the mth capture delay element 110 of the capture delay line 11. At this time, when the capture delay line 11 receives a high-level signal for time capture, when the second clock signal appears a high-level signal, the second input end of the mth capture delay element 110 of the capture delay line 11 transmits the received second clock signal in the capture delay line 11 along the second direction. The signal output by the second output end of the m capture delay elements 110 in the capture delay line 11 changes with the transmission of the second clock signal. When the first signal and the second clock signal meet in one of the m capture delay elements 110, the signals output by the first output end and the second output end of the m capture delay elements 110 no longer change. At this time, the first signal is no longer transmitted in the first direction, and the second clock signal is no longer transmitted in the second direction. At this time, the signal received by the input end of the control module 14 remains unchanged. When the signal received by the control module 14 at its input end remains unchanged, it can be determined that the first signal and the second clock signal meet, and the time capture of the edge signal is completed. At this time, the control module 14 can trigger the second preprocessing module 121 to output the second signal to the first input end of the first capture delay element 110. That is, the control module 14 outputs a control signal to the control end of the second preprocessing module 121. After receiving the control signal at its control end, the second preprocessing module 121 can output a second signal to the first input end of the first capture delay element 110, so that the capture delay line 11 can wait to receive the next edge signal, thereby improving the capture accuracy of the pulse signal capture circuit.
[0149] It should be noted that when the capture delay line 11 receives a low-level signal for time capture, the control module 14 triggers the second preprocessing module 121 to output the second signal to the first input terminal of the first capture delay element 110. The process is the same as the above-mentioned process in which when the capture delay line 11 receives a high-level signal for time capture, the control module 14 triggers the second preprocessing module 121 to control the output of the second signal to the first input terminal of the first capture delay element 110, and will not be repeated here.
[0150] It should be understood that the control module 14 can be a module in the signal processing module 12, that is, the control module 14 can be integrated in the signal processing module 12, or can be a module independent of the signal processing module 12, for example, it can be a main control module or processing module of a basic circuit chip, and the present application does not limit this. The illustration is only an example and is not a limitation on the pulse signal capture circuit.
[0151] As a possible implementation, Fig. 9 As shown, the pulse signal capture circuit further includes: an oscillation counter 15.
[0152] An input terminal of the oscillation counter 15 is connected to an output terminal of the nth delay element 102. The oscillation counter 15 is used to count the first clock signal.
[0153] In the embodiment of the present application, when capturing the duration of the pulse signal, the edge signal in the pulse signal can be captured by capturing the delay line 11 to determine the precise time of the edge signal within one cycle of the first clock signal. The number of cycles of the first clock signal of the signal interval between the two edge signals of the pulse signal is determined by the oscillation counter 15. Therefore, an oscillation counter 15 is set in the pulse signal capture circuit, and the input end of the oscillation counter 15 is connected to the output end of the nth delay element 102, and the oscillation counter 15 can count the first clock signal output by the oscillation delay line 10.
[0154] As a possible implementation, for ease of implementation, the counting period of the oscillation counter 15 is half of the period of the first clock signal.
[0155] As a possible implementation, for ease of implementation, the sum of the delay times of the m capture delay elements 110 of the capture delay line 11 is half of the period of the first clock signal. Of course, the sum of the delay times of the m capture delay elements 110 of the capture delay line 11 can also be the period of the first clock signal, or other times, and the present application does not limit this.
[0156] Exemplarily, the input signal is a pulse signal, such as Fig.10As shown, when calculating the duration of the input signal, it is necessary to determine the time △t1, time △t2 and time △t3. The time △t1, time △t2 and time △t3 are captured by the pulse signal capture circuit. Assume that the oscillation delay line 10 in the pulse signal capture circuit includes 10 delay elements 102, and the capture delay line 11 includes 10 capture delay elements 110. And the counting cycle of the oscillation counter 15 is 0.5 cycles of the first clock signal. At this time, an enable signal can be input to the logic gate 101 of the oscillation delay line 10 of the pulse capture circuit according to a preset time interval, so that the logic gate 101 generates a first clock signal and outputs it through n delay elements 102. The second input end of the first preprocessing module 131 of the clock processing module 13 receives the first clock signal. The input signal is input to the pulse signal capture circuit, the second preprocessing module 121 in the signal processing module 12 receives the input signal, and the first preprocessing module 131 in the clock processing module 13 receives the input signal. After the signal processing module 12 receives all input signals, it can detect whether the input signal contains an edge signal. If the input signal does not contain an edge signal during the time from t0 to t1, the signal processing module 12 can detect that the input signal does not contain an edge signal and output the first received signal to the capture delay line 11. At this time, when the signal processing module 12 only includes the second preprocessing module 121, the first received signal output at this time is the second signal. Assuming that in this example, a high-level signal is received in the capture delay line 11 for time capture, the second signal is a low-level signal. When the signal processing module 12 includes the second preprocessing module 121, the second inverter 122 and the second multiplexer 123, the first received signal output is the input signal, that is, a low-level signal. The clock processing module 13 receives the input signal, and the first preprocessing module 131 therein detects whether the input signal contains an edge signal. When it is detected that the input signal does not contain an edge signal, the first multiplexer 133 is controlled to output the second signal, that is, to output a low-level signal. At this time, the first receiving signal is received at the first input end of the first capture delay element 110 of the capture delay line 11, and the second signal is received at the second input end of the mth capture delay element 110. The capture delay line 11 always outputs low-level signals at the second output ends of the m capture delay elements 110 in the second direction, and always outputs low-level signals at the first output ends of the m capture delay elements 110 in the first direction.
[0157] When the input signal has an edge signal at time t1, the signal processing module 12 detects that the input signal has an edge signal, and the signal processing module 12 outputs a first signal, that is, a high-level signal, to the capture delay line 11. At this time, the first input end of the first capture delay element 110 of the capture delay line 11 receives the first signal, the first output end of the first capture delay element 110 outputs the first signal, and transmits the first signal to other capture delay elements 110 of the capture delay line 11 along the first direction. At the same time that the signal processing module 12 detects that the input signal has an edge signal, the first preprocessing module 131 in the clock processing module 13 detects that the input signal has an edge signal, and the first preprocessing module 131 in the clock processing module 13 controls the first multiplexer 133 to output a second clock signal. At this time, the second clock signal is the first clock or the inverted signal of the first clock signal. The second input end of the mth capture delay element 110 in the capture delay line 11 receives the second clock signal, the second output end of the mth capture delay element 110 outputs the second clock signal, and transmits the second clock signal to other capture delay elements 110 of the capture delay line 11 along the second direction. Assuming that the second clock signal becomes a high level signal only when the first signal passes through about 4 capture delay elements 110 along the first direction, the first signal transmitted in the first direction by the capture delay line 11 and the second clock signal transmitted in the second direction meet at the seventh capture delay element 110, that is, at D7. Fig.11 It should be understood that Fig.11Dn represents the nth capture delay element 110, and t1.n represents the time when the signal in the capture delay line 11 is transmitted through n capture delay elements 110. That is, t1.6 represents the time when the signal in the capture delay line 11 is transmitted through 6 capture delay elements 110, t1.7 represents the time when the signal in the capture delay line 11 is transmitted through 7 capture delay elements 110, and t1.8 represents the time when the signal in the capture delay line 11 is transmitted through 8 capture delay elements 110. That is, at t1.6, the signal transmitted in the first direction of the capture delay line 11 is transmitted to the 6th capture delay element 110, then the first output terminal of the 6th capture delay element 110 of the capture delay line 11 outputs 1, and the first output terminal of the 7th capture delay element 110 outputs 0. At time t1.7, the high-level signals of the first signal transmitted in the first direction and the second clock signal transmitted in the second direction of the capture delay line 11 are transmitted to the seventh capture delay element 110. The output signal of the first output end of the seventh capture delay element 110 of the capture delay line 11 depends on whether the first signal transmitted in the first direction or the high-level signal of the second clock signal transmitted in the second direction is transmitted to the seventh capture delay element 110 first. If the first signal transmitted in the first direction is transmitted to the seventh capture delay element 110 first, the output signal of the first output end of the seventh capture delay element 110 is high level. At this time, the first output end of the seventh capture delay element 110 of the capture delay line 11 outputs 1, and the first output end of the eighth capture delay element 110 outputs 0. At time t1.8, the first signal transmitted in the first direction and the high-level signal of the second clock signal transmitted in the second direction of the capture delay line 11 have met, and the output end signals of each capture delay element 110 will not change. At this time, the first output end of the seventh capture delay element 110 of the capture delay line 11 still outputs 1, and the first output end of the eighth capture delay element 110 still outputs 0. That is, if the high-level signal output from the first output end of the 10 capture delay elements 110 of the capture delay line 11 no longer moves, it means that the first signal and the second clock signal meet. The time between the occurrence of the edge signal and the rising edge or falling edge of the first clock signal can be determined by the output data that the high-level signal no longer moves along the first direction. Assuming that the sum of the delay times of the 10 capture delay elements 110 in the capture delay line 11 is 0.5 cycles of the first clock signal, △t1=(7-3)*(0.5CLK / 10)=0.2CLK can be calculated. Among them, CLK represents a cycle of the first clock signal. Similarly, △t2 can be obtained. Assuming that the first signal and the second clock signal meet at the 8th capture delay element 110, that is, they meet at D8, that is, the number of bits of the first signal no longer moving along the first direction is D8, then △t2=(8-2)*(0.5CLK / 10)=0.3CLK can be calculated.At this time, the input signal is counted by the oscillation counter 15 at the first clock time △t3. Assuming that in this example, the counting period of the oscillation counter is 0.5 periods of the first clock signal, then △t3=6*0.5CLK. At this time, the pulse duration of the input signal can be calculated as: T=0.2CLK+6*0.5CLK+(0.5CLK-0.3CLK)=3.4CLK. That is, the pulse duration is: first time+n*0.5CLK+(0.5CLK-second time), or, the pulse duration is: first time+(n+1)*0.5CLK-second time, where n is the number of counts of the clock cycle, and the first time is the time between the first edge signal and the next rising edge or falling edge of the second clock signal. The second time is the time between the second edge signal and the next rising edge or falling edge of the second clock signal.
[0158] The present application embodiment provides a pulse signal capture circuit, referring to Figure 1 As shown, including:
[0159] The oscillating delay line 10 periodically provides a first clock signal to the clock processing module 13;
[0160] The capture delay line 11 includes m capture delay elements 110, which are sequentially connected to transmit a first received signal in a first direction along a signal path and transmit a second received signal in a second direction opposite to the first direction along the signal path.
[0161] The first received signal includes a first signal or a second signal, the first signal is a signal that triggers the capture delay line 11 to perform time capture, and the second signal is a signal other than the first signal; the second received signal includes a second signal or a second clock signal.
[0162] The signal processing module 12 receives an input signal and outputs a first received signal to the capture delay line 11 in a first direction based on whether the input signal contains an along signal. The first received signal includes the first signal or the second signal.
[0163] The clock processing module 13 receives the input signal and the first clock signal provided by the oscillation delay line 10, processes the first clock signal based on whether the input signal contains an edge signal to obtain a second received signal, and outputs the second received signal to the capture delay line 11 in a second direction.
[0164] As a possible implementation, refer to Figure 2a and Figure 2b As shown, the clock processing module 13 includes: a first pre-processing module 131 , a first inverter 132 and a first multiplexer 133 .
[0165] The first inverter 132 receives the first clock signal, generates an inverted signal of the first clock signal according to the first clock signal, and transmits the inverted signal of the first clock signal to the first multiplexer 133 .
[0166] The first preprocessing module 131 receives an input signal and a first clock signal, determines a second received signal according to the input signal, and controls the first multiplexer 133 to output the second received signal to the capture delay line 11 in a second direction.
[0167] The first multiplexer 133 receives the first clock signal and the inverted signal of the first clock signal transmitted by the first inverter 132 , and outputs a second received signal to the capture delay line 11 in a second direction under the control of the first pre-processing module 131 .
[0168] As a possible implementation manner, the first clock signal and the inverted signal of the first clock signal include the second signal.
[0169] At this time, the first preprocessing module 131 is specifically used to determine the second signal as the second received signal when it is detected that the input signal does not include an edge signal, and control the first multiplexer 133 to alternately output the first clock signal and the inverted signal of the first clock signal to continuously output the second signal to the capture delay line 11 in the second direction; or,
[0170] When it is detected that the input signal includes an edge signal, the signal currently output by the first multiplexer 133 is determined as the second clock signal, and the first multiplexer 133 is controlled to output the second clock signal to the capture delay line 11 in the second direction.
[0171] The second clock signal is the first clock signal or an inverted signal of the first clock signal.
[0172] As a possible implementation manner, the first multiplexer 133 receives the second signal.
[0173] When detecting that the input signal does not include an edge signal, the first preprocessing module 131 determines the second signal as a second received signal, and controls the first multiplexer 133 to output the second signal received by the first multiplexer 133 to the capture delay line 11 in a second direction.
[0174] When it is detected that the input signal contains an edge signal, the first clock signal or the inverted signal of the first clock signal is determined as the second received signal, and the first multiplexer 133 is controlled to output the first clock signal or the inverted signal of the first clock signal received by the first multiplexer 133 to the capture delay line 11 in a second direction.
[0175] As a possible implementation, refer to Figure 6As shown, the signal processing module 12 includes a second pre-processing module 121 .
[0176] The second pre-processing module 121 receives an input signal and outputs a first received signal to the capture delay line 11 in a first direction based on whether the input signal contains an along signal. The first received signal includes the first signal or the second signal.
[0177] As a possible implementation, refer to Figure 7 As shown, the signal processing module 12 further includes: a second inverter 122 and a second multiplexer 123 .
[0178] The second inverter 122 receives an input signal, generates an inverted signal of the input signal according to the input signal, and transmits the inverted signal of the input signal to the second multiplexer 123 .
[0179] The second pre-processing module 121 receives an input signal, and controls the second multiplexer 123 to output a first received signal according to whether the input signal contains an edge signal.
[0180] The first received signal includes an input signal or an inverted signal of the input signal.
[0181] The second multiplexer 123 receives the input signal and the inverted signal of the input signal transmitted by the second inverter 122 , and outputs the first received signal under the control of the second pre-processing module 121 .
[0182] As a possible implementation, the second preprocessing module 121 receives an input signal, and when it is detected that the input signal includes an edge signal, outputs the first signal to the capture delay line 11 in a first direction within the duration of the edge signal; or, when it is detected that the input signal does not include an edge signal, outputs the second signal to the capture delay line 11 in a first direction.
[0183] As a possible implementation, refer to Figure 8 As shown, the pulse signal capture circuit further includes: a control module 14.
[0184] The control module 14 receives the signals outputted by the m capture delay elements 110 in the first direction and / or the second direction, and outputs a control signal to the second preprocessing module 121 when detecting that the signals outputted by the m capture delay elements 110 in the first direction and / or the second direction remain unchanged.
[0185] The second preprocessing module 121 receives an input signal, and when detecting that the input signal includes an edge signal, outputs a first signal to the capture delay line 11 in a first direction until a control signal is received, and when the control signal is received, continuously outputs a second signal to the capture delay line 11; or,
[0186] When it is detected that the input signal does not include an edge signal, a second signal is output to the capture delay line 11 in a first direction.
[0187] As a possible implementation, refer to Fig. 9 As shown, the pulse signal capture circuit further includes: an oscillation counter 15.
[0188] The oscillation counter 15 counts the first clock signal output from the oscillation delay line 10 .
[0189] An embodiment of the present application provides a microprocessor chip, comprising the pulse signal capture circuit described in the above embodiment.
[0190] In some embodiments, in some embodiments, the microprocessor chip can be, for example, an MCU (Microcontroller Unit), a DSP (Digital Signal Processing), an MPU (Microprocessor Unit), a micro CPU (Central Processing Unit), etc., which can process digital signals, analog signals, or perform signal control functions, instruction processing and calculation functions, and other micro central control chips, system-on-chip chips.
[0191] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.
[0192] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. A pulse signal capture circuit, characterized in that: include: An oscillating delay line, periodically providing a first clock signal to a clock processing module; A capture delay line, comprising m capture delay elements, wherein the m capture delay elements are sequentially connected to transmit a first received signal in a first direction along a signal path, and transmit a second received signal in a second direction opposite to the first direction along the signal path; the first received signal comprises a first signal or a second signal, wherein the first signal is a signal that triggers the capture delay line to perform time capture, and the second signal is a signal other than the first signal; the second received signal comprises the second signal or a second clock signal; a signal processing module, receiving an input signal and outputting the first received signal to the capture delay line in a first direction based on whether the input signal includes an along signal; the first received signal includes a first signal or a second signal; A clock processing module receives an input signal and the first clock signal provided by an oscillation delay line, processes the first clock signal based on whether the input signal contains an edge signal to obtain a second received signal, and outputs the second received signal to the capture delay line in a second direction.
2. The circuit according to claim 1, characterized in that The clock processing module includes: a first pre-processing module, a first inverter and a first multiplexer; a first inverter, receiving the first clock signal, generating an inverted signal of the first clock signal according to the first clock signal, and transmitting the inverted signal of the first clock signal to the first multiplexer; The first preprocessing module receives an input signal and a first clock signal, determines a second received signal according to the input signal, and controls the first multiplexing to output the second received signal to the capture delay line in a second direction; The first multiplexer receives the first clock signal and an inverted signal of the first clock signal transmitted by the first inverter, and outputs the second received signal to the capture delay line in a second direction under the control of the first preprocessing module.
3. The circuit according to claim 2, characterized in that The first clock signal and the inverted signal of the first clock signal include a second signal; The first preprocessing module, when detecting that the input signal does not include an edge signal, determines the second signal as the second received signal, and controls the first multiplexer to alternately output the first clock signal and the inverted signal of the first clock signal to continuously output the second received signal to the capture delay line in a second direction; or When it is detected that the input signal contains an edge signal, the signal currently output by the first multiplexer is determined as a second received signal, and the first multiplexer is controlled to output the second received signal to the capture delay line in a second direction; wherein the signal currently output by the first multiplexer is a first clock signal or an inverted signal of the first clock signal.
4. The circuit according to claim 2, characterized in that The first multiplexer receives a second signal; The first preprocessing module, when detecting that the input signal does not include an edge signal, determines the second signal as a second received signal, and controls the first multiplexer to output the second signal received by the first multiplexer to the capture delay line in a second direction; When it is detected that the input signal contains an edge signal and the first clock signal or the inverted signal of the first clock signal is determined as the second received signal, the first multiplexer is controlled to output the first clock signal or the inverted signal of the first clock signal received by the first multiplexer to the capture delay line in a second direction.
5. The circuit according to claim 1, characterized in that The signal processing module includes a second preprocessing module; The second pre-processing module receives an input signal and outputs the first received signal to the capture delay line in a first direction based on whether the input signal contains an along signal; the first received signal includes a first signal or a second signal.
6. The circuit according to claim 5, characterized in that The signal processing module further includes: a second inverter and a second multiplexer; a second inverter, receiving the input signal, generating an inverted signal of the input signal according to the input signal, and transmitting the inverted signal of the input signal to the second multiplexer; The second preprocessing module receives an input signal, and controls the second multiplexer to output a first received signal according to whether the input signal contains an edge signal; the first received signal includes the input signal or an inverted signal of the input signal; The second multiplexer receives the input signal and an inverted signal of the input signal transmitted by the second inverter, and outputs the first received signal to the capture delay line in a first direction under the control of the second preprocessing module.
7. The circuit according to claim 5, characterized in that The second preprocessing module receives an input signal, and when detecting that the input signal includes an edge signal, outputs the first signal to the capture delay line in a first direction within the duration of the edge signal; or When it is detected that the input signal does not include an edge signal, the second signal is output to the capture delay line in a first direction.
8. The circuit according to claim 5, characterized in that Also includes a control module; The control module receives the signals output by the m capture delay elements in the first direction and / or the second direction, and outputs a control signal to the second preprocessing module when detecting that the signals output by the m capture delay elements in the first direction and / or the second direction remain unchanged; The second preprocessing module receives an input signal, and when detecting that the input signal includes an edge signal, outputs the first signal to the capture delay line in a first direction until receiving the control signal, and when receiving the control signal, continuously outputs the second signal to the capture delay line; or The second signal is output to the capture delay line in a first direction when it is detected that the input signal does not include an edge signal.
9. The circuit according to claim 5, characterized in that Also includes: Oscillation counter; The oscillation counter counts the first clock signal output by the oscillation delay line.
10. A microprocessor chip, characterized in that: The invention comprises the pulse signal capturing circuit as described in any one of claims 1 to 9.
