Delay circuit
By designing a delay circuit containing multiple basic units and inverters, and using the number of basic units to control the delay time, the problems of poor complexity and flexibility of traditional delay circuits are solved, and the effect of flexible adjustment of delay time is achieved and the cost is reduced.
Patent Information
- Application Number
- CN202323508203.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2033-12-21
AI Technical Summary
Traditional delay circuits have complex structures, high cost and poor flexibility, making it difficult to adjust the signal delay time according to needs.
A delay circuit including a plurality of basic units and an inverter is designed to control the delay time by controlling the number of basic units through which the signal flows. The delay time of the second signal is positively correlated with the number of basic units through which the structure is simple and costly. Low.
The ability to flexibly adjust the delay time is realized to meet different needs and reduce the cost and complexity of the delay circuit.
Smart Images

Figure CN222073127U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of circuits, in particular to a delay circuit. Background Art
[0002] In the field of circuits, it is often necessary to delay signals. Traditional delay circuits have complex structures and require the use of specialized components, which are costly. In addition, the delay time of the input signal is limited by the parameters of the components, which makes it inflexible and difficult to adjust the delay time of the input signal according to demand. Therefore, a signal delay method with a simple structure and easy to change the delay time is needed. Utility Model Content
[0003] In order to solve the above technical problem or at least partially solve the above technical problem, an embodiment of the utility model provides a delay circuit.
[0004] In a first aspect, an embodiment of the utility model provides a delay circuit, wherein the delay circuit receives a first signal as an input signal, delays the first signal and outputs a second signal;
[0005] The delay circuit includes a plurality of basic units and a first inverter, wherein the plurality of basic units are cascaded, and an input end of the first inverter is coupled to an output end of a first-stage basic unit; the first signal flows through one or more cascaded basic units in the delay circuit, and is output from the first-stage basic unit to the first inverter; the first inverter outputs the second signal;
[0006] The delay circuit controls the transmission delay of the first signal in the delay circuit by controlling the number of basic units through which the first signal flows, and the delay length of the second signal relative to the first signal is positively correlated with the number of basic units through which the first signal flows.
[0007] Optionally, each of the basic units includes a first input terminal, a second input terminal, a third input terminal, a first output terminal and a second output terminal; the first input terminal receives the first signal or is coupled to the second output terminal of the previous level basic unit; the second input terminal receives the control signal; the third input terminal is coupled to the first output terminal of the next level basic unit or receives the third signal; the first output terminal is coupled to the first inverter input terminal or is coupled to the third input terminal of the previous level basic unit; the second output terminal is coupled to the first input terminal of the next level basic unit.
[0008] Optionally, the first input terminal of the basic unit of the first level receives the first signal, the second input terminal receives the corresponding control signal, and the third input terminal is coupled to the first output terminal of the basic unit of the next level; the first output terminal is coupled to the first inverter input terminal, and the second output terminal is coupled to the first input terminal of the basic unit of the next level; the first input terminal of the basic unit of the intermediate level is coupled to the second output terminal of the basic unit of the previous level, the second input terminal receives the corresponding control signal, the third input terminal is coupled to the first output terminal of the basic unit of the next level, the first output terminal is coupled to the third input terminal of the basic unit of the previous level, and the second output terminal is coupled to the first input terminal of the basic unit of the next level; the first input terminal of the basic unit of the last level is coupled to the second output terminal of the basic unit of the previous level, the second input terminal receives the corresponding control signal, and the third input terminal receives the third signal; the first output terminal is coupled to the third input terminal of the basic unit of the previous level.
[0009] Optionally, each of the basic units includes: a second inverter, a third inverter, a first NAND gate, a second NAND gate and a third NAND gate;
[0010] The second inverter input terminal receives the first signal or the signal output by the second output terminal of the previous basic unit; the second inverter output terminal is coupled to the third inverter input terminal, and the third inverter output terminal is the second output terminal of the basic unit;
[0011] The first NAND gate includes a fourth input terminal, a fifth input terminal and a third output terminal; the fourth input terminal is the first input terminal of the basic unit; the fifth input terminal is the second input terminal of the basic unit;
[0012] The second NAND gate includes a sixth input terminal, a seventh input terminal and a fourth output terminal; the sixth input terminal is coupled to the third output terminal of the first NAND gate; the seventh input terminal is the third input terminal of the basic unit;
[0013] The third NAND gate includes an eighth input terminal, a ninth input terminal and a fifth output terminal; the eighth input terminal is coupled to the fourth output terminal of the second NAND gate; the ninth input terminal receives a fourth signal; and the fifth output terminal is the first output terminal of the basic unit.
[0014] Optionally, the delay circuit receives a control signal group, the control signal group includes multiple control signals, and the control signals correspond to the basic units one by one; the delay circuit controls the number of basic units through which the first signal flows according to the control signal group.
[0015] Optionally, the delay circuit controls the number of basic units through which the first signal flows according to the value of each control signal in the control signal group; wherein, in a control signal group, only one control signal has a value at the first value.
[0016] Optionally, the control signal received by the Kth basic unit in the delay circuit is at a first value, and the control signals received by the other basic units at other levels are at a second value, and the first signal flows through the basic units before the Kth basic unit in the delay circuit, the Kth basic unit and the first inverter, 1≤K≤m, m represents the number of basic units in the delay circuit, and K and m are both positive integers.
[0017] Optionally, the control signal received by the first-stage basic unit in the delay circuit is at a first value, and the control signals received by the other stages of basic units are at a second value, the first signal flows through the first-stage basic unit and the first inverter in the delay circuit, and the delay circuit outputs a first delayed signal;
[0018] The control signal received by the second-stage basic unit in the delay circuit is at a first value, and the control signals received by the other basic units at different levels are at a second value, the first signal flows through the first-stage basic unit, the second basic unit and the first inverter in the delay circuit, and the delay circuit outputs a second delayed signal;
[0019] The control signal received by the third-level basic unit in the delay circuit is at a first value, and the control signals received by the other basic units at different levels are at a second value. The first signal flows through the first-level basic unit, the second basic unit, the third-level basic unit and the first inverter in the delay circuit, and the delay circuit outputs a third delayed signal.
[0020] Optionally, the control signal is at a first value, the first signal flows through the first NAND gate, the second NAND gate and the third NAND gate of the basic unit receiving the control signal, is output through the output end of the third NAND gate and flows through the second NAND gate and the third NAND gate of each basic unit above the basic unit in sequence, and is output from the third NAND gate of the first-level basic unit in the delay circuit to the first inverter; the control signal is at a second value, the first signal flows through the second inverter and the third inverter of the basic unit receiving the control signal, and is transmitted to the next-level basic unit.
[0021] Optionally, the time that each basic unit in the delay circuit can delay the input signal is T1; the delay time of the first delayed signal relative to the first signal is T1, the delay time of the second delayed signal relative to the first signal is 2T1, and the delay time of the third delayed signal relative to the first signal is 3T1.
[0022] The delay circuit provided by the embodiment of the utility model includes a plurality of basic units and a first inverter, wherein the plurality of basic units are cascaded, and the input end of the first inverter is coupled to the output end of the first-level basic unit; the first signal flows through one or more cascaded basic units in the delay circuit, and is output from the first-level basic unit to the first inverter; the first inverter outputs a second signal; the delay circuit controls the transmission delay of the first signal in the delay circuit by controlling the number of basic units through which the first signal flows, and the delay time of the second signal relative to the first signal is positively correlated with the number of basic units through which the first signal flows. The delay circuit has a simple structure and low cost. The more basic units the first signal flows through, the longer the delay time of the first signal. The delay time is changed by changing the number of basic units through which the first signal flows, so that the delay time can be flexibly changed to meet the demand. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the utility model. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0024] Figure 1 A block diagram of a signal frequency detection circuit according to an embodiment of the present utility model is shown;
[0025] Figure 2 A schematic diagram showing the delay of a measured signal by a delay circuit according to an embodiment of the utility model;
[0026] Figure 3 A block diagram of a delay circuit according to an embodiment of the present invention is shown;
[0027] Figure 4A A block diagram of a basic unit in a delay circuit according to an embodiment of the present utility model is shown;
[0028] Figure 4B A block diagram of a delay circuit according to an embodiment of the present invention is shown;
[0029] Figure 5 A block diagram of a delay circuit according to an embodiment of the present invention is shown;
[0030] Fig. 6A A schematic diagram showing a transmission path of a measured signal in a delay circuit according to an embodiment of the utility model;
[0031] Figure 6B A schematic diagram showing a transmission path of a measured signal in a delay circuit according to another embodiment of the utility model;
[0032] Figure 6CA schematic diagram showing a transmission path of a measured signal in a delay circuit according to another embodiment of the utility model;
[0033] Figure 7 A block diagram of a signal detection circuit according to an embodiment of the utility model is shown. DETAILED DESCRIPTION
[0034] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0035] Figure 1 FIG. 2 shows a schematic diagram of the structure of a signal frequency detection circuit according to an embodiment of the present utility model. Figure 1 As shown, the signal frequency detection circuit includes a delay circuit, a control circuit and a phase difference detection circuit.
[0036] The delay circuit receives the measured signal, takes the measured signal as the input signal, delays the measured signal, and outputs a delayed signal. The delay circuit only delays the measured signal in timing without changing the characteristics of the measured signal itself, such as the measured signal frequency, waveform, etc.
[0037] Take the measured signal as a rectangular wave as an example, Figure 2 As shown, the delay circuit delays the measured signal and outputs a delayed signal. There is a time delay between the delayed signal and the measured signal in timing, and the frequency of the delayed signal is the same as the frequency of the measured signal.
[0038] The phase difference detection circuit is coupled with the delay circuit and the control circuit. The phase difference detection circuit receives the measured signal and the delayed signal, calculates the phase difference between the delayed signal and the measured signal, wherein the phase difference refers to the time offset between the two signals, detects whether the phase difference is N times the 1 / 4 period of the measured signal, and outputs a signal according to the detection result. For example, if the phase difference detection circuit detects that the phase difference between the delayed signal and the measured signal is N times the 1 / 4 period of the measured signal, it outputs a signal A, and the signal A indicates that the phase difference between the delayed signal and the measured signal is N times the 1 / 4 period of the measured signal. If the phase difference between the delayed signal and the measured signal is not N times the 1 / 4 period of the measured signal, it outputs a signal B, and the signal B indicates that the phase difference between the delayed signal and the measured signal is not N times the 1 / 4 period of the measured signal.
[0039] In an optional embodiment, the phase difference detection circuit may be a 1 / 4 phase difference detection circuit, which detects whether the phase difference between the delayed signal and the measured signal is 1 times the 1 / 4 period of the measured signal.
[0040] In some other optional embodiments, the phase difference detection circuit may also be a 1 / 2 phase difference detection circuit, which detects whether the phase difference between the delayed signal and the measured signal is twice the 1 / 4 period of the measured signal.
[0041] The control circuit is coupled to the delay circuit and the phase difference detection circuit. The control circuit receives the output signal of the phase difference detection circuit, generates a control signal according to the output signal of the phase difference detection circuit, and controls the delay time of the delay circuit for delaying the measured signal through the control signal. In response to receiving the signal B output by the phase difference detection circuit, the control circuit changes the output control signal to change the delay time of the delay circuit for delaying the measured signal. In response to receiving the signal A, the control circuit no longer changes its output control signal.
[0042] In an optional embodiment, the control circuit responds to receiving signal A, determines the delay time of the delay circuit for the measured signal based on the control signal it outputs, directly outputs the delay parameters of the delay circuit for the measured signal such as the delay time, or provides the delay time to the phase difference detection circuit, and the phase difference detection circuit outputs the delay time.
[0043] For example, the working process of the control circuit, delay circuit, and phase difference detection circuit is as follows:
[0044] (1) Measured signal S in Input delay circuit;
[0045] (2) The control circuit generates a control signal S c0 , the control signal S c0 Provided to a delay circuit;
[0046] (3) The delay circuit is based on the control signal S c0 For the measured signal S in Delay and output delayed signal S d0 ;
[0047] (4) Phase difference detection circuit detects the delayed signal S d0 With the measured signal S in Is the phase difference of the measured signal S in N times of the period, if yes, output signal A, if no, output signal B;
[0048] (5-1) If the control circuit receives signal B, the control circuit changes the output control signal, for example, to control signal S c1 , the control signal S c1 Provided to the delay circuit to change the delay circuit's response to the measured signal S in delay time.
[0049] Repeat steps (3), (4), and (5-1) until the control circuit receives signal A. It should be understood that the numbers of steps (1) and (2) above do not represent the execution order of the steps, and step (1) can be before step (2) or after step (2).
[0050] (5-2) If the control circuit receives signal A, the control circuit no longer changes the control signal.
[0051] For example, if the measured signal is a signal with unknown frequency. To detect the frequency of the measured signal, the frequency of the measured signal is calculated based on the relationship between the phase difference (delay) between the delayed signal and the measured signal and the period of the measured signal. For example, in an embodiment of the present invention, if the phase difference detection circuit detects that the phase difference between the delayed signal and the measured signal is N times the 1 / 4 period of the measured signal, the frequency of the measured signal is determined according to the following formula (1):
[0052]
[0053] Where T represents the period of the measured signal, f represents the frequency of the measured signal, and T d Indicates the time the measured signal is delayed by the delay circuit.
[0054] In an embodiment of the utility model, the control circuit changes the delay time of the delay circuit for delaying the measured signal through a control signal, so that it generates a plurality of delay signals with different delay times, and detects whether the phase difference between the delay signal and the measured signal is N times of 1 / 4 period of the measured signal through a phase difference detection circuit. In the case where the phase difference between the delay signal and the measured signal is N times of 1 / 4 period of the measured signal, the frequency of the measured signal is determined according to the delay time of the measured signal by the delay circuit. The signal frequency detection circuit of the embodiment of the utility model can detect the frequency of an unknown signal without the aid of any special instrument, has a simple structure, improves the detection efficiency of unknown signals, shortens the time consumption of frequency detection, and has high reliability.
[0055] Figure 3 A schematic structural diagram of a delay circuit according to an embodiment of the utility model is shown.
[0056] As an example, Figure 3As shown, the delay circuit includes m basic units (basic unit 1, basic unit 2, ..., basic unit m) and an inverter B0; wherein the m basic units are cascaded. When the measured signal is transmitted in the delay circuit, it may flow through only one basic unit, or it may flow through several (for example, 2 or 3, etc.) basic units, or it may flow through all basic units. For example, the delay time of each basic unit for the measured signal is within a preset range, such as the delay time of the measured signal flowing through each basic unit is 5ps (picoseconds). The delay time of the delayed signal relative to the measured signal is related to the number of basic units through which the measured signal flows. Therefore, by controlling the number of basic units through which the measured signal flows, the delay time of the delayed signal relative to the measured signal can be controlled. The more basic units the measured signal flows through, the longer the delay time of the delayed signal relative to the measured signal.
[0057] The number of basic units through which the measured signal flows in the delay circuit is controlled by the control signal output by the control circuit. The control circuit controls the number of basic units through which the measured signal flows by generating the control signal, thereby changing the time during which the measured signal is delayed in the delay circuit. For example, the control circuit outputs a control signal group, the control signal group includes a plurality of control signals, and the plurality of control signals correspond one-to-one to a plurality of basic units. If the delay circuit includes m basic units, the control signal group output by the control circuit includes m control signals, and the m control signals correspond one-to-one to the m basic units.
[0058] like Figure 3 As shown, each basic unit includes three input terminals input1, input2, input3 and two output terminals output1, output2.
[0059] Input1 of the first-stage basic unit receives the measured signal, input2 receives the corresponding control signal, input3 is coupled with output1 of the second-stage basic unit, output1 is coupled with the input end of inverter B0, and output2 is coupled with input1 of the second-stage basic unit.
[0060] Input1 of the intermediate basic unit is coupled to output2 of the previous basic unit, input2 receives the corresponding control signal, input3 is coupled to output1 of the next basic unit, output1 is coupled to input3 of the previous basic unit, and output2 is coupled to input1 of the next basic unit.
[0061] The input 1 of the last basic unit is coupled to the output 2 of the previous basic unit, the input 2 receives the corresponding control signal, the input 3 receives the external signal (such as a high level signal), and the output 1 is coupled to the input 3 of the previous basic unit. The embodiment of the utility model does not limit the output 2 of the last basic unit, and will not be described here.
[0062] Figure 4A FIG. 1 is a schematic diagram showing the structure of a basic unit of an embodiment of the utility model. Figure 4A As shown, the basic unit includes an inverter B1, an inverter B2, a NAND gate A1, a NAND gate A2, and a NAND gate A3.
[0063] The inverter B1 receives the input signal S1 of the basic unit. If the basic unit is the first-level basic unit in the delay circuit, the input signal S1 is the measured signal, or, if the basic unit is not the first-level basic unit in the delay circuit, the input signal S1 is the output signal of the inverter B2 in the previous basic unit. The output end of the inverter B1 is coupled to the input end of the inverter B2.
[0064] The output terminal of the inverter B2 is coupled to the input terminal of the inverter B1 in the next-stage basic unit.
[0065] The NAND gate A1 includes two input terminals, one of which receives a control signal from a control circuit, and the other receives an input signal of the basic unit (ie, an input signal S1 received by the inverter B1).
[0066] The NAND gate A2 includes two input terminals, one of which is coupled to the output terminal of the NAND gate A1. If the basic unit is not the last basic unit in the delay circuit, the other input terminal of the NAND gate A2 is coupled to the output terminal of the NAND gate A3 in the next basic unit; or, if the basic unit is the last basic unit in the delay circuit, the other input terminal of the NAND gate A2 receives an external signal (e.g., a high level signal).
[0067] The NAND gate A3 includes two input terminals, one of which is coupled to the output terminal of the NAND gate A2. The other input terminal of the NAND gate A3 receives an external signal. If the basic unit is a first-stage basic unit in the delay circuit, the output terminal of the NAND gate A3 is coupled to the input terminal of the inverter B0, or, if the basic unit is not a first-stage basic unit in the delay circuit, the output terminal of the NAND gate A3 is coupled to the input terminal of the NAND gate A2 in the previous-stage basic unit. The output signal of the NAND gate A3 is the output signal S2 of the basic unit.
[0068] The processing logic of the NAND gate for the input signal is to perform an AND operation first, and then a NOT operation. When one or more of the input terminals are at a low level, the output is a high level regardless of the value of the other input terminal; only when all inputs are at a high level, the output is a low level. Figure 4A In the embodiment shown, for example, one input terminal of the NAND gate A1 receives a control signal, and the other input terminal receives a signal S1. If the control signal is at a low level, no matter what the value of the input signal S1 at the other input terminal of the NAND gate A1 is, the output signal of the NAND gate A1 is at a high level, and the output signal of the NAND gate A1 has nothing to do with the input signal S1. In this case, the input signal S1 does not flow through the NAND gate A1, the NAND gate A2, and the NAND gate A3, but is transmitted to the next-level basic unit through the inverter B1 and the inverter B2, and the input signal S1 flows through at least two basic units in the delay circuit. If the control signal is at a high level, the output signal of the NAND gate A1 is determined by the input signal S1. In this case, the input signal S1 flows through the NAND gate A1, the NAND gate A2, and the NAND gate A3, and the signal S2 is output from the output terminal of the NAND gate A3. For example, if the basic unit is the basic unit 1 in the delay circuit, the input signal S1 flows through one basic unit in the delay circuit. Based on this, the control circuit can control the number of basic units that the input signal S1 flows through in the extension circuit by controlling the value of the control signal sent to the delay circuit, thereby controlling the delay duration of the input signal S1 by the delay circuit.
[0069] Figure 4B The structure diagram of the delay circuit of the embodiment of the utility model is shown as follows: Figure 4B As shown, the delay circuit includes m Figure 4A The basic unit shown in the figure is cascaded between m basic units. The control circuit generates a control signal group for controlling the m basic units in the delay circuit. The control signal group includes m control signals, and each control signal corresponds to a basic unit. For example, the control signal group includes control signals sel_1hot[0], sel_1hot[1], ..., sel_1hot[m-1]. Among them, sel_1hot[0] corresponds to controlling basic unit 1, sel_1hot[1] corresponds to controlling basic unit 2, and sel_1hot[m-1] corresponds to controlling basic unit m.
[0070] For example, the control circuit generates a control signal sel_1hot[0]=1, and the other control signals (sel_1hot[1], ..., sel_1hot[m-1]) are all 0, then the measured signal flows through the NAND gate A1, NAND gate A2 and NAND gate A3 of the basic unit 1 in the delay circuit, and is output from the output end of the NAND gate A3. The measured signal only flows through the basic unit 1 in the delay circuit, that is, the measured signal only flows through one basic unit in the delay circuit. For another example, the control circuit generates a control signal of sel_1hot[1]=1, and the other control signals (sel_1hot[0], ..., sel_1hot[m-1]) are all 0, then the measured signal flows through the inverter B1 and inverter B2 of the basic unit 1 in the delay circuit, and is output from the output end of the inverter B2 to the basic unit 2, and then flows through the NAND gate A1, NAND gate A2 and NAND gate A3 in the basic unit 2, and is output from the output end of the NAND gate A3 to the NAND gate A2 in the basic unit 1, and is output from the output end of the NAND gate A3 in the basic unit 1. The measured signal flows through the two basic units of the basic unit 1 and the basic unit 2 in the delay circuit. For another example, the control circuit controls the measured signal through a control signal to flow through 1 basic unit, 2 basic units, 3 basic units, ..., k basic units (1≤k≤m, k is an integer) in the delay circuit in sequence, and so on and so forth until the phase difference between the delayed signal and the measured signal is N times the 1 / 4 period of the measured signal, or the measured signal flows through all the basic units of the delay circuit.
[0071] In an optional embodiment, the control signal may include at least one branch signal. The branch signals correspond to the basic units in the delay circuit one by one, different branch signals are provided to different basic units, and the number of basic units through which the measured signal flows is controlled by the branch signals.
[0072] Figure 5 FIG. 2 shows a schematic diagram of the structure of a delay circuit according to an embodiment of the present utility model. Figure 5 As shown, the delay circuit includes three basic units, namely: basic unit 1, basic unit 2 and basic unit 3.
[0073] and Figure 5 The control signal output by the control circuit coupled to the delay circuit shown may include three branch signals, namely sel_1hot[0], sel_1hot[1] and sel_1hot[2]. sel_1hot[0] is provided to basic unit 1, sel_1hot[1] is provided to basic unit 2, and sel_1hot[2] is provided to basic unit 3.
[0074] like Figure 5As shown, the basic unit 1 includes: inverter B3, inverter B4, NAND gate A4, NAND gate A5, and NAND gate A6. Inverter B3 receives the measured signal S in The output of inverter B4 is coupled to the input of inverter B5 in basic unit 2. Inverter B4 outputs signal S3. The input of NAND gate A4 receives control signal sel_1hot[0] and measured signal S in The input end of the NAND gate A5 is coupled to the output end of the NAND gate A4 and the output end of the NAND gate A9 respectively. The input end of the NAND gate A6 receives the external signal TIE1. The output end of the NAND gate A6 is coupled to the inverter B0.
[0075] Basic unit 2 includes: inverter B5, inverter B6, NAND gate A7, NAND gate A8, and NAND gate A9. Inverter B5 receives output signal S3 of inverter B4 and uses signal S3 as input signal of basic unit 2. The output end of inverter B6 is coupled with the input end of inverter B7 in basic unit 3. Inverter B6 outputs signal S4. The input end of NAND gate A7 receives control signal sel_1hot[1] and signal S3. The input end of NAND gate A8 is coupled with the output end of NAND gate A7 and the output end of NAND gate A12 respectively. The input end of NAND gate A9 receives external signal TIE2. The output end of NAND gate A9 is coupled with the input end of NAND gate A5.
[0076] Basic unit 3 includes: inverter B7, inverter B8, NAND gate A10, NAND gate A11, and NAND gate A12. Inverter B7 receives output signal S4 of inverter B6, and uses signal S4 as input signal of basic unit 3. The input end of NAND gate A10 receives control signal sel_1hot[2] and signal S4. One output end of NAND gate A11 is coupled to the output end of NAND gate A10, and the other input end receives a high level signal. The input end of NAND gate A12 receives external signal TIE3. The output end of NAND gate A12 is coupled to the input end of NAND gate A8.
[0077] 1 represents a high level signal, and 0 represents a low level signal. Figure 5 In the embodiment shown, if the control signal is sel_1hot[0]=1, sel_1hot[1]=0, sel_1hot[2]=0, the delay circuit controls the transmission path of the measured signal in the delay circuit according to the control signal, such as Fig. 6AAs shown by the dotted line in the middle, the transmission path of the measured signal in the delay circuit is: A4→A5→A6→B0. At this time, the measured signal only flows through the basic unit 1. For example, T1 is used to represent the time that each basic unit in the delay circuit can delay. Then the time that the current measured signal is delayed in the delay circuit is T1, and the phase difference between the delayed signal and the measured signal is T1. The phase difference detection circuit receives the measured signal and the delayed signal, and determines whether the phase difference T1 between the delayed signal and the measured signal is N times of the 1 / 4 cycle of the measured signal, for example, 1 times. If the phase difference T1 between the delayed signal and the measured signal is not N times of the 1 / 4 cycle of the measured signal, the phase difference detection circuit outputs signal B (signal B represents that the phase difference between the delayed signal and the measured signal is not N times of the 1 / 4 cycle of the measured signal). The control circuit receives the signal B output by the phase difference detection circuit and changes the control signal, for example, changes sel_1hot[0]=1, sel_1hot[1]=0, sel_1hot[2]=0 to sel_1hot[0]=0, sel_1hot[1]=1, sel_1hot[2]=0. If the phase difference T1 between the delayed signal and the measured signal is N times the 1 / 4 period of the measured signal, the phase difference detection circuit outputs a signal A (the signal A indicates that the phase difference between the delayed signal and the measured signal is N times the 1 / 4 period of the measured signal). The control circuit receives the signal A output by the phase difference detection circuit and no longer changes the control signal. In response to receiving the signal A, the control circuit outputs the number of basic units through which the measured signal currently flows, or provides the number of basic units through which the measured signal currently flows to the phase difference detection circuit, and the phase difference detection circuit outputs the number of basic units through which the measured signal currently flows.
[0078] For example, the delay circuit receives control signals sel_1hot[0]=0, sel_1hot[1]=1, sel_1hot[2]=0, and controls the transmission path of the measured signal in the delay circuit according to the control signals, such as Figure 6BAs shown by the dotted line in the middle, the transmission path of the measured signal in the delay circuit is: B3→B4→A7→A8→A9→A5→A6→B0. At this time, the measured signal flows through basic unit 1 and basic unit 2, and the time the measured signal is delayed in the delay circuit is T2=2×T1, and the phase difference between the delayed signal and the measured signal is T2. The phase difference detection circuit receives the measured signal and the delayed signal, and determines whether the phase difference T2 between the delayed signal and the measured signal is N times of the 1 / 4 period of the measured signal, for example, 1 times. If the phase difference T2 between the delayed signal and the measured signal is not N times of the 1 / 4 period of the measured signal, the phase difference detection circuit outputs signal B. The control circuit receives the signal B output by the phase difference detection circuit and changes the control signal, for example, sel_1hot[0]=0, sel_1hot[1]=1, sel_1hot[2]=0 is changed to sel_1hot[0]=0, sel_1hot[1]=0, sel_1hot[2]=1. If the phase difference T2 between the delayed signal and the measured signal is N times the 1 / 4 cycle of the measured signal, the phase difference detection circuit outputs a signal A. The control circuit receives the signal A output by the phase difference detection circuit and does not change the control signal any more.
[0079] For example, the delay circuit receives control signals sel_1hot[0]=0, sel_1hot[1]=0, sel_1hot[2]=1, and controls the transmission path of the measured signal in the delay circuit according to the control signals, such as Figure 6C As shown by the dotted line in the middle, the transmission path of the measured signal in the delay circuit is: B3→B4→B5→B6→A10→A11→A12→A8→A9→A5→A6→B0. At this time, the measured signal flows through basic unit 1, basic unit 2 and basic unit 3, and each basic unit delays the measured signal for the same time. Then, the measured signal is delayed in the delay circuit for T3=3×T1, and the phase difference between the delayed signal and the measured signal is T3. The phase difference detection circuit receives the measured signal and the delayed signal, and determines whether the phase difference T3 between the delayed signal and the measured signal is N times of the 1 / 4 period of the measured signal, for example, 1 times. If the phase difference T3 between the delayed signal and the measured signal is N times of the 1 / 4 period of the measured signal, the phase difference detection circuit outputs signal A. The control circuit receives the signal A output by the phase difference detection circuit and no longer changes the control signal.
[0080] Depend on Figure 5 , Fig. 6A , Figure 6B , Figure 6C It can be seen that the embodiment of the utility model can adjust the transmission path of the measured signal in the delay circuit by changing the control signal provided to each basic unit, thereby changing the number of basic units and the delay time through which the measured signal flows.
[0081] In an optional embodiment, when it is detected that the phase difference between the delayed signal and the measured signal is N times of 1 / 4 period of the measured signal, the phase difference detection circuit outputs a signal A. In response to receiving the signal A, the control circuit directly outputs the number of basic units through which the measured signal flows, or provides the number of basic units through which the measured signal flows to the phase difference detection circuit, and the phase difference detection circuit outputs the number of basic units through which the measured signal flows.
[0082] As another example, the control circuit responds to receiving the signal A, and the delay circuit stops the measured signal from circulating through the basic unit. For example, when the measured signal flows through two basic units in the delay circuit, the phase difference detection circuit outputs the signal A, and the control circuit directly outputs the number of basic units (two basic units) through which the measured signal currently flows according to the signal A, and the delay circuit stops the measured signal from circulating through the basic unit.
[0083] In an optional embodiment, the control circuit includes a counter. The counter generates a count value P from 1 to m at a specified time interval. The control circuit generates a control signal according to the count value P, so that the measured signal flows through the first P basic units in the delay unit. When the phase difference between the delayed signal and the measured signal is N times the 1 / 4 cycle of the measured signal, the counter stops counting, and the control circuit outputs the count value P of the counter, thereby determining the number of basic units through which the measured signal flows, and then determining the time when the measured signal is delayed. When the phase difference between the delayed signal and the measured signal is not N times the 1 / 4 cycle of the measured signal, the counter counts in sequence until the phase difference between the delayed signal and the measured signal is N times the 1 / 4 cycle of the measured signal.
[0084] As an example, based on the delay time of each basic unit to the measured signal, the time delay between the measured signal and the delayed signal can be calculated according to the number of basic units through which the measured signal flows, and then the frequency of the measured signal can be calculated according to the time delay between the measured signal and the delayed signal and the relationship between the time delay and the period of the measured signal. For details, please refer to the above formula (1), which will not be repeated here.
[0085] Figure 7 FIG. 2 shows a schematic diagram of the structure of a signal detection circuit according to an embodiment of the present utility model. Figure 7 As shown, the signal detection circuit includes a signal frequency detection circuit and a signal frequency calculation circuit. The signal frequency detection circuit includes a delay circuit, a control circuit, and a phase difference detection circuit. Among them, the delay circuit, the control circuit, and the phase difference detection circuit can refer to Figure 1-6C The present invention will not be described in detail in any of the embodiments shown.
[0086] The signal frequency calculation circuit is coupled to the signal frequency detection circuit, receives the delay time output by the signal frequency detection circuit or the number of basic units through which the measured signal flows, and calculates the frequency of the measured signal according to the delay time or the number of basic units through which the measured signal flows. The signal frequency calculation circuit calculates the frequency of the measured signal according to the following formula (2):
[0087]
[0088] Wherein, T represents the period of the measured signal, f represents the frequency of the measured signal, t represents the delay time of the basic unit to the measured signal, and h represents the number of basic units through which the measured signal flows.
[0089] Although preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention. Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A delay circuit, characterized in that The delay circuit receives a first signal as an input signal, delays the first signal and outputs a second signal; The delay circuit includes a plurality of basic units and a first inverter, wherein the plurality of basic units are cascaded, and an input end of the first inverter is coupled to an output end of a first-stage basic unit; the first signal flows through one or more cascaded basic units in the delay circuit, and is output from the first-stage basic unit to the first inverter; the first inverter outputs the second signal; The delay circuit controls the transmission delay of the first signal in the delay circuit by controlling the number of basic units through which the first signal flows, and the delay length of the second signal relative to the first signal is positively correlated with the number of basic units through which the first signal flows.
2. The circuit according to claim 1, characterized in that Each of the basic units comprises a first input terminal, a second input terminal, a third input terminal, a first output terminal and a second output terminal; The first input terminal receives the first signal or is coupled to the second output terminal of the previous basic unit; the second input terminal receives a control signal; The third input terminal is coupled to the first output terminal of the next-level basic unit or receives a third signal; the first output terminal is coupled to the first inverter input terminal or to the third input terminal of the previous-level basic unit; and the second output terminal is coupled to the first input terminal of the next-level basic unit.
3. The circuit according to claim 2, characterized in that The first input terminal of the first-stage basic unit receives the first signal, the second input terminal receives the corresponding control signal, and the third input terminal is coupled to the first output terminal of the next-stage basic unit; the first output terminal is coupled to the first inverter input terminal, and the second output terminal is coupled to the first input terminal of the next-stage basic unit; The first input terminal of the intermediate-level basic unit is coupled to the second output terminal of the previous-level basic unit, the second input terminal receives the corresponding control signal, the third input terminal is coupled to the first output terminal of the next-level basic unit, the first output terminal is coupled to the third input terminal of the previous-level basic unit, and the second output terminal is coupled to the first input terminal of the next-level basic unit; The first input terminal of the basic unit of the last stage is coupled to the second output terminal of the basic unit of the previous stage, the second input terminal receives the corresponding control signal, and the third input terminal receives the third signal; the first output terminal is coupled to the third input terminal of the basic unit of the previous stage.
4. The circuit according to claim 2 or 3, characterized in that Each of the basic units comprises: a second inverter, a third inverter, a first NAND gate, a second NAND gate and a third NAND gate; The second inverter input terminal receives the first signal or the signal output by the second output terminal of the previous basic unit; the second inverter output terminal is coupled to the third inverter input terminal, and the third inverter output terminal is the second output terminal of the basic unit; The first NAND gate includes a fourth input terminal, a fifth input terminal and a third output terminal; the fourth input terminal is the first input terminal of the basic unit; the fifth input terminal is the second input terminal of the basic unit; The second NAND gate includes a sixth input terminal, a seventh input terminal and a fourth output terminal; the sixth input terminal is coupled to the third output terminal of the first NAND gate; the seventh input terminal is the third input terminal of the basic unit; The third NAND gate includes an eighth input terminal, a ninth input terminal and a fifth output terminal; the eighth input terminal is coupled to the fourth output terminal of the second NAND gate; the ninth input terminal receives a fourth signal; and the fifth output terminal is the first output terminal of the basic unit.
5. The circuit according to claim 1, characterized in that The delay circuit receives a control signal group, the control signal group includes a plurality of control signals, and the control signals correspond to the basic units one by one; The delay circuit controls the number of basic units through which the first signal flows according to the control signal group.
6. The circuit according to claim 5, characterized in that The delay circuit controls the number of basic units through which the first signal flows according to the value of each control signal in the control signal group; wherein, in a control signal group, only one control signal has a first value.
7. The circuit according to claim 6, characterized in that The control signal received by the Kth basic unit in the delay circuit is at a first value, and the control signals received by the other basic units at different levels are at a second value. The first signal flows through the basic units before the Kth basic unit in the delay circuit, the Kth basic unit and the first inverter. 1≤K≤m, m represents the number of basic units in the delay circuit, and K and m are both positive integers.
8. The circuit according to claim 7, characterized in that The control signal received by the first-stage basic unit in the delay circuit is at a first value, and the control signals received by the other basic units at different levels are at a second value, the first signal flows through the first-stage basic unit and the first inverter in the delay circuit, and the delay circuit outputs a first delayed signal; The control signal received by the second-stage basic unit in the delay circuit is at a first value, and the control signals received by the other basic units at different levels are at a second value, the first signal flows through the first-stage basic unit, the second basic unit and the first inverter in the delay circuit, and the delay circuit outputs a second delayed signal; The control signal received by the third-level basic unit in the delay circuit is at a first value, and the control signals received by the other basic units at different levels are at a second value. The first signal flows through the first-level basic unit, the second basic unit, the third-level basic unit and the first inverter in the delay circuit, and the delay circuit outputs a third delayed signal.
9. The circuit according to claim 8, characterized in that The control signal is at a first value, the first signal flows through the first NAND gate, the second NAND gate and the third NAND gate of the basic unit receiving the control signal, is output through the output terminal of the third NAND gate and sequentially flows through the second NAND gate and the third NAND gate of each basic unit above the basic unit, and is output from the third NAND gate of the first-stage basic unit in the delay circuit to the first inverter; The control signal is at a second value, the first signal flows through the second inverter and the third inverter of the basic unit receiving the control signal, and is transmitted to the next-stage basic unit.
10. The circuit according to claim 9, characterized in that The time that each basic unit in the delay circuit can delay the input signal is T1; The delay time of the first delayed signal relative to the first signal is T1, the delay time of the second delayed signal relative to the first signal is 2T1, and the delay time of the third delayed signal relative to the first signal is 3T1.
